home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / A / Arrange Developer Kit 1.0.sit / Examples / Select Subnotes / SelectSubnotes.cp < prev    next >
MacBinary  |  1994-07-15  |  13.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: SelectSubnotes.cp

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Jul 15 15:36:37 1994, modified Fri Jul 15 15:36:37 1994, creator 'MPS ', type ASCII, 13177 bytes "SelectSubnotes.cp" , at 0x33f9 796 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 53 65 6c 65 63 74 | 53 75 62 6e 6f 74 65 73 |..Select|Subnotes|
|00000010| 2e 63 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.cp.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 33 79 00 | 00 03 1c aa 4c 95 c5 aa |.....3y.|....L...|
|00000060| 4c 95 c5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |L.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 87 42 00 00 |........|.....B..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 41 72 72 61 6e 67 |#include| "Arrang|
|00000090| 65 43 61 6c 6c 62 61 63 | 6b 73 2e 68 22 0d 23 69 |eCallbac|ks.h".#i|
|000000a0| 6e 63 6c 75 64 65 20 22 | 50 6c 75 67 69 6e 4c 69 |nclude "|PluginLi|
|000000b0| 62 72 61 72 79 2e 68 22 | 0d 0d 23 69 6e 63 6c 75 |brary.h"|..#inclu|
|000000c0| 64 65 20 3c 44 69 61 6c | 6f 67 73 2e 68 3e 0d 23 |de <Dial|ogs.h>.#|
|000000d0| 69 6e 63 6c 75 64 65 20 | 3c 45 76 65 6e 74 73 2e |include |<Events.|
|000000e0| 68 3e 20 2f 2f 20 66 6f | 72 20 73 68 69 66 74 4b |h> // fo|r shiftK|
|000000f0| 65 79 20 63 6f 6e 73 74 | 61 6e 74 0d 0d 2f 2f 20 |ey const|ant..// |
|00000100| 53 65 6c 65 63 74 53 75 | 62 6e 6f 74 65 73 2e 63 |SelectSu|bnotes.c|
|00000110| 70 20 2d 20 62 61 73 65 | 64 20 6f 6e 20 47 65 6e |p - base|d on Gen|
|00000120| 65 72 69 63 50 6c 75 67 | 69 6e 2e 63 70 20 61 73 |ericPlug|in.cp as|
|00000130| 20 6f 66 20 37 2f 31 35 | 2f 39 34 0d 0d 0d 23 64 | of 7/15|/94...#d|
|00000140| 65 66 69 6e 65 20 4d 6f | 64 75 6c 65 52 73 72 63 |efine Mo|duleRsrc|
|00000150| 49 44 20 30 78 46 46 46 | 46 38 38 30 30 0d 0d 23 |ID 0xFFF|F8800..#|
|00000160| 64 65 66 69 6e 65 20 62 | 61 73 65 43 6d 64 43 6f |define b|aseCmdCo|
|00000170| 64 65 20 30 78 31 32 30 | 30 30 30 30 30 20 2f 2f |de 0x120|00000 //|
|00000180| 20 72 65 70 6c 61 63 65 | 20 74 68 69 73 20 77 69 | replace| this wi|
|00000190| 74 68 20 61 20 76 61 6c | 75 65 20 6f 62 74 61 69 |th a val|ue obtai|
|000001a0| 6e 65 64 20 66 72 6f 6d | 0d 09 09 09 09 09 09 09 |ned from|........|
|000001b0| 09 09 09 20 2f 2f 20 43 | 6f 6d 6d 6f 6e 20 4b 6e |... // C|ommon Kn|
|000001c0| 6f 77 6c 65 64 67 65 2e | 0d 0d 23 64 65 66 69 6e |owledge.|..#defin|
|000001d0| 65 20 61 62 6f 75 74 43 | 6d 64 43 6f 64 65 20 20 |e aboutC|mdCode |
|000001e0| 20 20 28 62 61 73 65 43 | 6d 64 43 6f 64 65 20 2b | (baseC|mdCode +|
|000001f0| 20 30 29 0d 23 64 65 66 | 69 6e 65 20 73 65 6c 53 | 0).#def|ine selS|
|00000200| 75 62 6e 6f 74 65 73 43 | 6f 64 65 20 28 62 61 73 |ubnotesC|ode (bas|
|00000210| 65 43 6d 64 43 6f 64 65 | 20 2b 20 31 29 0d 0d 0d |eCmdCode| + 1)...|
|00000220| 63 6c 61 73 73 20 50 6c | 75 67 69 6e 0d 09 7b 0d |class Pl|ugin..{.|
|00000230| 70 75 62 6c 69 63 3a 0d | 09 50 6c 75 67 69 6e 28 |public:.|.Plugin(|
|00000240| 63 6f 6e 73 74 20 41 72 | 72 61 6e 67 65 43 61 6c |const Ar|rangeCal|
|00000250| 6c 62 61 63 6b 54 62 6c | 2a 20 74 68 65 43 61 6c |lbackTbl|* theCal|
|00000260| 6c 73 29 3b 0d 09 7e 50 | 6c 75 67 69 6e 28 29 3b |ls);..~P|lugin();|
|00000270| 0d 09 0d 09 61 72 48 6f | 6f 6b 52 65 73 75 6c 74 |....arHo|okResult|
|00000280| 20 43 6c 69 63 6b 4e 6f | 74 69 66 79 28 20 61 72 | ClickNo|tify( ar|
|00000290| 43 6c 69 63 6b 4c 6f 63 | 61 74 69 6f 6e 20 6c 6f |ClickLoc|ation lo|
|000002a0| 63 2c 20 50 6f 69 6e 74 | 20 77 68 65 72 65 2c 20 |c, Point| where, |
|000002b0| 53 68 6f 72 74 20 6d 6f | 64 69 66 69 65 72 73 2c |Short mo|difiers,|
|000002c0| 0d 09 09 09 09 09 09 09 | 09 09 20 20 53 68 6f 72 |........|.. Shor|
|000002d0| 74 20 63 6c 69 63 6b 43 | 6f 75 6e 74 2c 20 61 72 |t clickC|ount, ar|
|000002e0| 4e 6f 74 65 49 44 20 6e | 6f 74 65 2c 20 61 72 46 |NoteID n|ote, arF|
|000002f0| 69 65 6c 64 49 44 20 66 | 69 65 6c 64 2c 0d 09 09 |ieldID f|ield,...|
|00000300| 09 09 09 09 09 09 09 20 | 20 61 72 50 61 74 68 49 |....... | arPathI|
|00000310| 44 20 70 61 74 68 20 29 | 3b 0d 09 61 72 48 6f 6f |D path )|;..arHoo|
|00000320| 6b 52 65 73 75 6c 74 20 | 4b 65 79 4e 6f 74 69 66 |kResult |KeyNotif|
|00000330| 79 20 20 28 20 53 68 6f | 72 74 20 74 68 65 43 68 |y ( Sho|rt theCh|
|00000340| 61 72 2c 20 53 68 6f 72 | 74 20 6b 65 79 2c 20 53 |ar, Shor|t key, S|
|00000350| 68 6f 72 74 20 6d 6f 64 | 69 66 69 65 72 73 20 29 |hort mod|ifiers )|
|00000360| 3b 0d 09 61 72 48 6f 6f | 6b 52 65 73 75 6c 74 20 |;..arHoo|kResult |
|00000370| 4d 65 6e 75 4e 6f 74 69 | 66 79 20 28 20 49 6e 74 |MenuNoti|fy ( Int|
|00000380| 65 67 65 72 20 63 6f 6d | 6d 61 6e 64 43 6f 64 65 |eger com|mandCode|
|00000390| 2c 20 49 6e 74 65 67 65 | 72 20 63 6f 6d 6d 61 6e |, Intege|r comman|
|000003a0| 64 50 61 72 61 6d 2c 0d | 09 09 09 09 09 09 09 09 |dParam,.|........|
|000003b0| 09 20 20 53 68 6f 72 74 | 20 6d 6f 64 69 66 69 65 |. Short| modifie|
|000003c0| 72 73 20 29 3b 0d 09 61 | 72 48 6f 6f 6b 52 65 73 |rs );..a|rHookRes|
|000003d0| 75 6c 74 20 46 69 65 6c | 64 4e 6f 74 69 66 79 28 |ult Fiel|dNotify(|
|000003e0| 20 61 72 4e 6f 74 65 49 | 44 20 6e 6f 74 65 2c 20 | arNoteI|D note, |
|000003f0| 61 72 46 69 65 6c 64 49 | 44 20 66 69 65 6c 64 2c |arFieldI|D field,|
|00000400| 20 61 72 46 69 65 6c 64 | 41 63 74 69 6f 6e 20 61 | arField|Action a|
|00000410| 63 74 69 6f 6e 2c 0d 09 | 09 09 09 09 09 09 09 09 |ction,..|........|
|00000420| 20 20 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 63 68 | const |char* ch|
|00000430| 6f 69 63 65 54 65 78 74 | 20 29 3b 0d 09 76 6f 69 |oiceText| );..voi|
|00000440| 64 20 20 20 20 20 20 20 | 20 20 54 6f 70 69 63 4e |d | TopicN|
|00000450| 6f 74 69 66 79 28 20 61 | 72 54 6f 70 69 63 49 44 |otify( a|rTopicID|
|00000460| 20 6e 65 77 54 6f 70 69 | 63 2c 20 61 72 57 69 6e | newTopi|c, arWin|
|00000470| 64 6f 77 49 44 20 6e 65 | 77 57 69 6e 64 6f 77 2c |dowID ne|wWindow,|
|00000480| 0d 09 09 09 09 09 09 09 | 09 09 20 20 61 72 54 6f |........|.. arTo|
|00000490| 70 69 63 41 63 74 69 6f | 6e 20 61 63 74 69 6f 6e |picActio|n action|
|000004a0| 20 29 3b 0d 09 76 6f 69 | 64 09 09 09 20 54 69 63 | );..voi|d... Tic|
|000004b0| 6b 4e 6f 74 69 66 79 20 | 28 20 20 29 3b 0d 09 61 |kNotify |( );..a|
|000004c0| 72 48 6f 6f 6b 52 65 73 | 75 6c 74 20 46 69 6c 65 |rHookRes|ult File|
|000004d0| 4e 6f 74 69 66 79 20 28 | 20 61 72 46 69 6c 65 41 |Notify (| arFileA|
|000004e0| 63 74 69 6f 6e 20 61 63 | 74 69 6f 6e 20 29 3b 0d |ction ac|tion );.|
|000004f0| 09 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 51 75 |.arHookR|esult Qu|
|00000500| 69 74 4e 6f 74 69 66 79 | 20 28 20 20 29 3b 0d 09 |itNotify| ( );..|
|00000510| 76 6f 69 64 20 20 20 20 | 20 20 20 20 20 41 54 4d |void | ATM|
|00000520| 4e 6f 74 69 66 79 20 20 | 28 20 20 29 3b 0d 09 0d |Notify |( );...|
|00000530| 70 72 69 76 61 74 65 3a | 0d 09 63 6f 6e 73 74 20 |private:|..const |
|00000540| 41 72 72 61 6e 67 65 43 | 61 6c 6c 62 61 63 6b 54 |ArrangeC|allbackT|
|00000550| 62 6c 2a 20 63 61 6c 6c | 73 3b 20 2f 2f 20 63 61 |bl* call|s; // ca|
|00000560| 6c 6c 62 61 63 6b 20 74 | 61 62 6c 65 0d 09 0d 09 |llback t|able....|
|00000570| 76 6f 69 64 20 44 6f 53 | 65 6c 65 63 74 53 75 62 |void DoS|electSub|
|00000580| 6e 6f 74 65 73 28 42 6f | 6f 6c 65 61 6e 20 64 6f |notes(Bo|olean do|
|00000590| 41 64 64 29 3b 0d 09 7d | 3b 20 2f 2f 20 50 6c 75 |Add);..}|; // Plu|
|000005a0| 67 69 6e 0d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |gin.../*|********|
|000005b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005f0| 2f 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/./*****|********|
|00000600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00000610| 4d 61 69 6e 20 65 6e 74 | 72 79 20 70 6f 69 6e 74 |Main ent|ry point|
|00000620| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|00000630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 2f 2a |********|****/./*|
|00000640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000650| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000680| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 2f 2a 20 52 6f |********|/../* Ro|
|00000690| 6f 74 20 65 6e 74 72 79 | 20 70 6f 69 6e 74 20 66 |ot entry| point f|
|000006a0| 6f 72 20 74 68 65 20 6d | 6f 64 75 6c 65 20 2d 20 |or the m|odule - |
|000006b0| 6d 75 73 74 20 62 65 20 | 74 68 65 20 66 69 72 73 |must be |the firs|
|000006c0| 74 20 66 75 6e 63 74 69 | 6f 6e 20 69 6e 20 74 68 |t functi|on in th|
|000006d0| 65 0d 20 2a 20 66 69 6c | 65 2c 20 73 6f 20 74 68 |e. * fil|e, so th|
|000006e0| 61 74 20 74 68 65 20 6c | 69 6e 6b 65 72 20 77 69 |at the l|inker wi|
|000006f0| 6c 6c 20 70 6c 61 63 65 | 20 69 74 20 66 69 72 73 |ll place| it firs|
|00000700| 74 20 69 6e 20 74 68 65 | 20 63 6f 64 65 20 73 65 |t in the| code se|
|00000710| 67 6d 65 6e 74 2e 0d 20 | 2a 20 54 68 69 73 20 69 |gment.. |* This i|
|00000720| 73 20 74 68 65 20 72 6f | 75 74 69 6e 65 20 77 68 |s the ro|utine wh|
|00000730| 69 63 68 20 41 72 72 61 | 6e 67 65 20 63 61 6c 6c |ich Arra|nge call|
|00000740| 73 20 61 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |s at app|lication|
|00000750| 20 73 74 61 72 74 75 70 | 20 74 69 6d 65 0d 20 2a | startup| time. *|
|00000760| 20 28 61 6e 64 20 61 67 | 61 69 6e 20 61 74 20 71 | (and ag|ain at q|
|00000770| 75 69 74 20 74 69 6d 65 | 29 2e 0d 20 2a 20 0d 20 |uit time|).. * . |
|00000780| 2a 20 4d 6f 73 74 20 70 | 6c 75 67 2d 69 6e 73 20 |* Most p|lug-ins |
|00000790| 77 69 6c 6c 20 6e 6f 74 | 20 6e 65 65 64 20 74 6f |will not| need to|
|000007a0| 20 6d 6f 64 69 66 79 20 | 74 68 69 73 20 72 6f 75 | modify |this rou|
|000007b0| 74 69 6e 65 20 6f 72 20 | 74 68 65 20 48 6f 6f 6b |tine or |the Hook|
|000007c0| 20 66 75 6e 63 74 69 6f | 6e 73 0d 20 2a 20 69 6d | functio|ns. * im|
|000007d0| 6d 65 64 69 61 74 65 6c | 79 20 66 6f 6c 6c 6f 77 |mediatel|y follow|
|000007e0| 69 6e 67 2e 20 20 41 6c | 6c 20 63 75 73 74 6f 6d |ing. Al|l custom|
|000007f0| 69 7a 61 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 64 |ization |can be d|
|00000800| 6f 6e 65 20 69 6e 20 74 | 68 65 20 22 50 6c 75 67 |one in t|he "Plug|
|00000810| 69 6e 22 0d 20 2a 20 73 | 65 63 74 69 6f 6e 20 28 |in". * s|ection (|
|00000820| 62 65 6c 6f 77 29 2e 0d | 20 2a 2f 0d 65 78 74 65 |below)..| */.exte|
|00000830| 72 6e 20 22 43 22 20 49 | 6e 74 65 67 65 72 20 4f |rn "C" I|nteger O|
|00000840| 75 72 4d 6f 64 75 6c 65 | 52 6f 6f 74 28 20 4d 6f |urModule|Root( Mo|
|00000850| 64 75 6c 65 50 61 72 61 | 6d 42 6c 6f 63 6b 20 2a |dulePara|mBlock *|
|00000860| 70 62 2c 20 4d 6f 64 75 | 6c 65 52 6f 6f 74 41 63 |pb, Modu|leRootAc|
|00000870| 74 69 6f 6e 20 61 63 74 | 69 6f 6e 2c 0d 09 09 09 |tion act|ion,....|
|00000880| 09 09 09 09 09 09 09 09 | 20 49 6e 74 65 67 65 72 |........| Integer|
|00000890| 20 2f 2a 70 31 2a 2f 20 | 29 0d 09 7b 0d 09 2f 2a | /*p1*/ |)..{../*|
|000008a0| 20 45 78 74 72 61 63 74 | 20 74 68 65 20 63 61 6c | Extract| the cal|
|000008b0| 6c 62 61 63 6b 20 74 61 | 62 6c 65 20 66 72 6f 6d |lback ta|ble from|
|000008c0| 20 6f 75 72 20 70 61 72 | 61 6d 65 74 65 72 20 62 | our par|ameter b|
|000008d0| 6c 6f 63 6b 2c 20 61 6e | 64 20 63 6f 65 72 63 65 |lock, an|d coerce|
|000008e0| 20 69 74 0d 09 20 2a 20 | 74 6f 20 74 68 65 20 65 | it.. * |to the e|
|000008f0| 78 74 65 6e 64 65 64 20 | 41 72 72 61 6e 67 65 20 |xtended |Arrange |
|00000900| 74 61 62 6c 65 2e 0d 09 | 20 2a 2f 0d 09 41 72 72 |table...| */..Arr|
|00000910| 61 6e 67 65 43 61 6c 6c | 62 61 63 6b 54 62 6c 2a |angeCall|backTbl*|
|00000920| 20 63 61 6c 6c 73 20 3d | 20 28 41 72 72 61 6e 67 | calls =| (Arrang|
|00000930| 65 43 61 6c 6c 62 61 63 | 6b 54 62 6c 2a 29 28 70 |eCallbac|kTbl*)(p|
|00000940| 62 2d 3e 63 61 6c 6c 73 | 29 3b 0d 09 0d 09 73 77 |b->calls|);....sw|
|00000950| 69 74 63 68 20 28 61 63 | 74 69 6f 6e 29 0d 09 09 |itch (ac|tion)...|
|00000960| 7b 0d 09 09 63 61 73 65 | 20 6d 72 4c 6f 61 64 3a |{...case| mrLoad:|
|00000970| 0d 09 09 09 7b 0d 09 09 | 09 2f 2f 20 41 6c 6c 6f |....{...|.// Allo|
|00000980| 63 61 74 65 20 6d 65 6d | 6f 72 79 20 61 6e 64 20 |cate mem|ory and |
|00000990| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 50 6c 75 |create a| new Plu|
|000009a0| 67 69 6e 20 6f 62 6a 65 | 63 74 2e 0d 09 09 09 76 |gin obje|ct.....v|
|000009b0| 6f 69 64 2a 20 73 74 6f | 72 61 67 65 20 3d 20 63 |oid* sto|rage = c|
|000009c0| 61 6c 6c 73 2d 3e 6d 65 | 6d 2d 3e 41 6c 6c 6f 63 |alls->me|m->Alloc|
|000009d0| 4d 65 6d 28 20 73 69 7a | 65 6f 66 28 50 6c 75 67 |Mem( siz|eof(Plug|
|000009e0| 69 6e 29 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |in),....|........|
|000009f0| 09 09 09 09 20 20 61 6d | 46 72 65 65 53 74 6f 72 |.... am|FreeStor|
|00000a00| 65 20 7c 20 61 6d 45 72 | 72 49 66 4e 6f 4d 65 6d |e | amEr|rIfNoMem|
|00000a10| 20 29 3b 0d 09 09 09 70 | 62 2d 3e 6d 6f 64 75 6c | );....p|b->modul|
|00000a20| 65 52 65 66 63 6f 6e 20 | 3d 20 75 49 6e 74 65 67 |eRefcon |= uInteg|
|00000a30| 65 72 28 6e 65 77 28 73 | 74 6f 72 61 67 65 29 20 |er(new(s|torage) |
|00000a40| 50 6c 75 67 69 6e 28 63 | 61 6c 6c 73 29 29 3b 0d |Plugin(c|alls));.|
|00000a50| 09 09 09 72 65 74 75 72 | 6e 20 31 3b 0d 09 09 09 |...retur|n 1;....|
|00000a60| 7d 0d 09 09 0d 09 09 63 | 61 73 65 20 6d 72 55 6e |}......c|ase mrUn|
|00000a70| 6c 6f 61 64 3a 0d 09 09 | 09 7b 0d 09 09 09 2f 2a |load:...|.{..../*|
|00000a80| 20 44 69 73 70 6f 73 65 | 20 6f 66 20 74 68 65 20 | Dispose| of the |
|00000a90| 50 6c 75 67 69 6e 20 6f | 62 6a 65 63 74 20 61 6e |Plugin o|bject an|
|00000aa0| 64 20 72 65 6c 65 61 73 | 65 20 74 68 65 20 6d 65 |d releas|e the me|
|00000ab0| 6d 6f 72 79 0d 09 09 09 | 20 2a 20 69 74 20 6f 63 |mory....| * it oc|
|00000ac0| 63 75 70 69 65 73 2e 0d | 09 09 09 20 2a 2f 0d 09 |cupies..|... */..|
|00000ad0| 09 09 64 65 6c 65 74 65 | 20 28 50 6c 75 67 69 6e |..delete| (Plugin|
|00000ae0| 2a 29 28 70 62 2d 3e 6d | 6f 64 75 6c 65 52 65 66 |*)(pb->m|oduleRef|
|00000af0| 63 6f 6e 29 3b 0d 09 09 | 09 63 61 6c 6c 73 2d 3e |con);...|.calls->|
|00000b00| 6d 65 6d 2d 3e 44 65 61 | 6c 6c 6f 63 4d 65 6d 28 |mem->Dea|llocMem(|
|00000b10| 28 76 6f 69 64 2a 29 28 | 70 62 2d 3e 6d 6f 64 75 |(void*)(|pb->modu|
|00000b20| 6c 65 52 65 66 63 6f 6e | 29 2c 20 61 6d 46 72 65 |leRefcon|), amFre|
|00000b30| 65 53 74 6f 72 65 29 3b | 0d 09 09 09 72 65 74 75 |eStore);|....retu|
|00000b40| 72 6e 20 30 3b 0d 09 09 | 09 7d 0d 09 09 0d 09 09 |rn 0;...|.}......|
|00000b50| 63 61 73 65 20 6d 72 46 | 69 6e 64 45 6e 74 72 79 |case mrF|indEntry|
|00000b60| 3a 0d 09 09 64 65 66 61 | 75 6c 74 3a 0d 09 09 09 |:...defa|ult:....|
|00000b70| 7b 0d 09 09 09 2f 2a 20 | 54 68 69 73 20 6d 6f 64 |{..../* |This mod|
|00000b80| 75 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 6e 6f 20 |ule cont|ains no |
|00000b90| 65 78 74 65 6e 64 65 64 | 20 65 6e 74 72 79 20 70 |extended| entry p|
|00000ba0| 6f 69 6e 74 73 2c 20 73 | 6f 20 77 65 20 61 6c 77 |oints, s|o we alw|
|00000bb0| 61 79 73 0d 09 09 09 20 | 2a 20 72 65 74 75 72 6e |ays.... |* return|
|00000bc0| 20 30 20 66 6f 72 20 74 | 68 65 20 6d 72 46 69 6e | 0 for t|he mrFin|
|00000bd0| 64 45 6e 74 72 79 20 6d | 65 73 73 61 67 65 2e 20 |dEntry m|essage. |
|00000be0| 20 4d 6f 73 74 20 70 6c | 75 67 2d 69 6e 73 20 77 | Most pl|ug-ins w|
|00000bf0| 69 6c 6c 20 6e 6f 74 0d | 09 09 09 20 2a 20 75 73 |ill not.|... * us|
|00000c00| 65 20 65 78 74 65 6e 64 | 65 64 20 65 6e 74 72 79 |e extend|ed entry|
|00000c10| 20 70 6f 69 6e 74 73 2e | 0d 09 09 09 20 2a 2f 0d | points.|.... */.|
|00000c20| 09 09 09 72 65 74 75 72 | 6e 20 30 3b 0d 09 09 09 |...retur|n 0;....|
|00000c30| 7d 0d 09 09 0d 09 09 7d | 20 2f 2f 20 73 77 69 74 |}......}| // swit|
|00000c40| 63 68 20 28 61 63 74 69 | 6f 6e 29 0d 09 0d 09 7d |ch (acti|on)....}|
|00000c50| 20 2f 2f 20 4f 75 72 4d | 6f 64 75 6c 65 52 6f 6f | // OurM|oduleRoo|
|00000c60| 74 0d 0d 0d 2f 2a 20 54 | 68 65 73 65 20 68 6f 6f |t.../* T|hese hoo|
|00000c70| 6b 20 66 75 6e 63 74 69 | 6f 6e 73 20 73 69 6d 70 |k functi|ons simp|
|00000c80| 6c 79 20 70 61 73 73 20 | 63 6f 6e 74 72 6f 6c 20 |ly pass |control |
|00000c90| 74 6f 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |to the a|ppropria|
|00000ca0| 74 65 20 66 75 6e 63 74 | 69 6f 6e 0d 20 2a 20 69 |te funct|ion. * i|
|00000cb0| 6e 20 74 68 65 20 50 6c | 75 67 69 6e 20 6f 62 6a |n the Pl|ugin obj|
|00000cc0| 65 63 74 2e 0d 20 2a 2f | 0d 73 74 61 74 69 63 20 |ect.. */|.static |
|00000cd0| 61 72 48 6f 6f 6b 52 65 | 73 75 6c 74 20 4f 75 72 |arHookRe|sult Our|
|00000ce0| 43 6c 69 63 6b 48 6f 6f | 6b 28 20 4d 6f 64 75 6c |ClickHoo|k( Modul|
|00000cf0| 65 50 61 72 61 6d 42 6c | 6f 63 6b 2a 20 70 62 2c |eParamBl|ock* pb,|
|00000d00| 20 61 72 43 6c 69 63 6b | 4c 6f 63 61 74 69 6f 6e | arClick|Location|
|00000d10| 20 6c 6f 63 2c 0d 09 09 | 09 09 09 09 09 09 09 09 | loc,...|........|
|00000d20| 09 20 50 6f 69 6e 74 20 | 77 68 65 72 65 2c 20 70 |. Point |where, p|
|00000d30| 53 68 6f 72 74 20 6d 6f | 64 69 66 69 65 72 73 2c |Short mo|difiers,|
|00000d40| 20 70 53 68 6f 72 74 20 | 63 6c 69 63 6b 43 6f 75 | pShort |clickCou|
|00000d50| 6e 74 2c 0d 09 09 09 09 | 09 09 09 09 09 09 09 20 |nt,.....|....... |
|00000d60| 61 72 4e 6f 74 65 49 44 | 20 6e 6f 74 65 2c 20 61 |arNoteID| note, a|
|00000d70| 72 46 69 65 6c 64 49 44 | 20 66 69 65 6c 64 2c 0d |rFieldID| field,.|
|00000d80| 09 09 09 09 09 09 09 09 | 09 09 09 20 61 72 50 61 |........|... arPa|
|00000d90| 74 68 49 44 20 70 61 74 | 68 20 45 4e 44 50 20 29 |thID pat|h ENDP )|
|00000da0| 0d 09 7b 0d 09 72 65 74 | 75 72 6e 20 28 28 50 6c |..{..ret|urn ((Pl|
|00000db0| 75 67 69 6e 2a 29 28 70 | 62 2d 3e 6d 6f 64 75 6c |ugin*)(p|b->modul|
|00000dc0| 65 52 65 66 63 6f 6e 29 | 29 2d 3e 43 6c 69 63 6b |eRefcon)|)->Click|
|00000dd0| 4e 6f 74 69 66 79 28 20 | 6c 6f 63 2c 20 77 68 65 |Notify( |loc, whe|
|00000de0| 72 65 2c 20 6d 6f 64 69 | 66 69 65 72 73 2c 0d 09 |re, modi|fiers,..|
|00000df0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000e00| 09 63 6c 69 63 6b 43 6f | 75 6e 74 2c 20 6e 6f 74 |.clickCo|unt, not|
|00000e10| 65 2c 20 66 69 65 6c 64 | 2c 0d 09 09 09 09 09 09 |e, field|,.......|
|00000e20| 09 09 09 09 09 09 09 09 | 09 09 09 09 70 61 74 68 |........|....path|
|00000e30| 20 29 3b 0d 09 7d 0d 0d | 0d 73 74 61 74 69 63 20 | );..}..|.static |
|00000e40| 61 72 48 6f 6f 6b 52 65 | 73 75 6c 74 20 4f 75 72 |arHookRe|sult Our|
|00000e50| 4b 65 79 48 6f 6f 6b 28 | 20 4d 6f 64 75 6c 65 50 |KeyHook(| ModuleP|
|00000e60| 61 72 61 6d 42 6c 6f 63 | 6b 2a 20 70 62 2c 20 70 |aramBloc|k* pb, p|
|00000e70| 53 68 6f 72 74 20 74 68 | 65 43 68 61 72 2c 20 70 |Short th|eChar, p|
|00000e80| 53 68 6f 72 74 20 6b 65 | 79 2c 0d 09 09 09 09 09 |Short ke|y,......|
|00000e90| 09 09 09 09 09 20 20 70 | 53 68 6f 72 74 20 6d 6f |..... p|Short mo|
|00000ea0| 64 69 66 69 65 72 73 20 | 45 4e 44 50 20 29 0d 09 |difiers |ENDP )..|
|00000eb0| 7b 0d 09 72 65 74 75 72 | 6e 20 28 28 50 6c 75 67 |{..retur|n ((Plug|
|00000ec0| 69 6e 2a 29 28 70 62 2d | 3e 6d 6f 64 75 6c 65 52 |in*)(pb-|>moduleR|
|00000ed0| 65 66 63 6f 6e 29 29 2d | 3e 4b 65 79 4e 6f 74 69 |efcon))-|>KeyNoti|
|00000ee0| 66 79 28 74 68 65 43 68 | 61 72 2c 20 6b 65 79 2c |fy(theCh|ar, key,|
|00000ef0| 20 6d 6f 64 69 66 69 65 | 72 73 29 3b 0d 09 7d 0d | modifie|rs);..}.|
|00000f00| 0d 0d 73 74 61 74 69 63 | 20 61 72 48 6f 6f 6b 52 |..static| arHookR|
|00000f10| 65 73 75 6c 74 20 4f 75 | 72 4d 65 6e 75 48 6f 6f |esult Ou|rMenuHoo|
|00000f20| 6b 28 20 4d 6f 64 75 6c | 65 50 61 72 61 6d 42 6c |k( Modul|eParamBl|
|00000f30| 6f 63 6b 2a 20 70 62 2c | 20 49 6e 74 65 67 65 72 |ock* pb,| Integer|
|00000f40| 20 63 6f 6d 6d 61 6e 64 | 43 6f 64 65 2c 0d 09 09 | command|Code,...|
|00000f50| 09 09 09 09 09 09 09 09 | 09 49 6e 74 65 67 65 72 |........|.Integer|
|00000f60| 20 63 6f 6d 6d 61 6e 64 | 50 61 72 61 6d 2c 20 70 | command|Param, p|
|00000f70| 53 68 6f 72 74 20 6d 6f | 64 69 66 69 65 72 73 20 |Short mo|difiers |
|00000f80| 45 4e 44 50 20 29 0d 09 | 7b 0d 09 72 65 74 75 72 |ENDP )..|{..retur|
|00000f90| 6e 20 28 28 50 6c 75 67 | 69 6e 2a 29 28 70 62 2d |n ((Plug|in*)(pb-|
|00000fa0| 3e 6d 6f 64 75 6c 65 52 | 65 66 63 6f 6e 29 29 2d |>moduleR|efcon))-|
|00000fb0| 3e 4d 65 6e 75 4e 6f 74 | 69 66 79 28 20 63 6f 6d |>MenuNot|ify( com|
|00000fc0| 6d 61 6e 64 43 6f 64 65 | 2c 20 63 6f 6d 6d 61 6e |mandCode|, comman|
|00000fd0| 64 50 61 72 61 6d 2c 0d | 09 09 09 09 09 09 09 09 |dParam,.|........|
|00000fe0| 09 09 09 09 09 09 09 09 | 20 20 20 20 20 6d 6f 64 |........| mod|
|00000ff0| 69 66 69 65 72 73 20 29 | 3b 0d 09 7d 0d 0d 0d 73 |ifiers )|;..}...s|
|00001000| 74 61 74 69 63 20 61 72 | 48 6f 6f 6b 52 65 73 75 |tatic ar|HookResu|
|00001010| 6c 74 20 4f 75 72 46 69 | 65 6c 64 48 6f 6f 6b 28 |lt OurFi|eldHook(|
|00001020| 20 4d 6f 64 75 6c 65 50 | 61 72 61 6d 42 6c 6f 63 | ModuleP|aramBloc|
|00001030| 6b 2a 20 70 62 2c 20 61 | 72 4e 6f 74 65 49 44 20 |k* pb, a|rNoteID |
|00001040| 6e 6f 74 65 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |note,...|........|
|00001050| 09 20 61 72 46 69 65 6c | 64 49 44 20 66 69 65 6c |. arFiel|dID fiel|
|00001060| 64 2c 20 61 72 46 69 65 | 6c 64 41 63 74 69 6f 6e |d, arFie|ldAction|
|00001070| 20 61 63 74 69 6f 6e 2c | 0d 09 09 09 09 09 09 09 | action,|........|
|00001080| 09 09 09 09 20 63 6f 6e | 73 74 20 63 68 61 72 2a |.... con|st char*|
|00001090| 20 63 68 6f 69 63 65 54 | 65 78 74 20 45 4e 44 50 | choiceT|ext ENDP|
|000010a0| 20 29 0d 09 7b 0d 09 72 | 65 74 75 72 6e 20 28 28 | )..{..r|eturn ((|
|000010b0| 50 6c 75 67 69 6e 2a 29 | 28 70 62 2d 3e 6d 6f 64 |Plugin*)|(pb->mod|
|000010c0| 75 6c 65 52 65 66 63 6f | 6e 29 29 2d 3e 46 69 65 |uleRefco|n))->Fie|
|000010d0| 6c 64 4e 6f 74 69 66 79 | 28 20 6e 6f 74 65 2c 20 |ldNotify|( note, |
|000010e0| 66 69 65 6c 64 2c 20 61 | 63 74 69 6f 6e 2c 0d 09 |field, a|ction,..|
|000010f0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001100| 09 63 68 6f 69 63 65 54 | 65 78 74 20 29 3b 0d 09 |.choiceT|ext );..|
|00001110| 7d 0d 0d 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |}...stat|ic void |
|00001120| 4f 75 72 54 6f 70 69 63 | 48 6f 6f 6b 28 20 4d 6f |OurTopic|Hook( Mo|
|00001130| 64 75 6c 65 50 61 72 61 | 6d 42 6c 6f 63 6b 2a 20 |dulePara|mBlock* |
|00001140| 70 62 2c 20 61 72 54 6f | 70 69 63 49 44 20 6e 65 |pb, arTo|picID ne|
|00001150| 77 54 6f 70 69 63 2c 0d | 09 09 09 09 09 09 09 09 |wTopic,.|........|
|00001160| 20 20 61 72 57 69 6e 64 | 6f 77 49 44 20 6e 65 77 | arWind|owID new|
|00001170| 57 69 6e 64 6f 77 2c 20 | 61 72 54 6f 70 69 63 41 |Window, |arTopicA|
|00001180| 63 74 69 6f 6e 20 61 63 | 74 69 6f 6e 20 45 4e 44 |ction ac|tion END|
|00001190| 50 20 29 0d 09 7b 0d 09 | 28 28 50 6c 75 67 69 6e |P )..{..|((Plugin|
|000011a0| 2a 29 28 70 62 2d 3e 6d | 6f 64 75 6c 65 52 65 66 |*)(pb->m|oduleRef|
|000011b0| 63 6f 6e 29 29 2d 3e 54 | 6f 70 69 63 4e 6f 74 69 |con))->T|opicNoti|
|000011c0| 66 79 28 6e 65 77 54 6f | 70 69 63 2c 20 6e 65 77 |fy(newTo|pic, new|
|000011d0| 57 69 6e 64 6f 77 2c 20 | 61 63 74 69 6f 6e 29 3b |Window, |action);|
|000011e0| 0d 09 7d 0d 0d 0d 73 74 | 61 74 69 63 20 76 6f 69 |..}...st|atic voi|
|000011f0| 64 20 4f 75 72 54 69 63 | 6b 48 6f 6f 6b 28 4d 6f |d OurTic|kHook(Mo|
|00001200| 64 75 6c 65 50 61 72 61 | 6d 42 6c 6f 63 6b 2a 20 |dulePara|mBlock* |
|00001210| 70 62 20 45 4e 44 50 29 | 0d 09 7b 0d 09 28 28 50 |pb ENDP)|..{..((P|
|00001220| 6c 75 67 69 6e 2a 29 28 | 70 62 2d 3e 6d 6f 64 75 |lugin*)(|pb->modu|
|00001230| 6c 65 52 65 66 63 6f 6e | 29 29 2d 3e 54 69 63 6b |leRefcon|))->Tick|
|00001240| 4e 6f 74 69 66 79 28 29 | 3b 0d 09 7d 0d 0d 0d 73 |Notify()|;..}...s|
|00001250| 74 61 74 69 63 20 61 72 | 48 6f 6f 6b 52 65 73 75 |tatic ar|HookResu|
|00001260| 6c 74 20 4f 75 72 46 69 | 6c 65 48 6f 6f 6b 28 4d |lt OurFi|leHook(M|
|00001270| 6f 64 75 6c 65 50 61 72 | 61 6d 42 6c 6f 63 6b 2a |odulePar|amBlock*|
|00001280| 20 70 62 2c 20 61 72 46 | 69 6c 65 41 63 74 69 6f | pb, arF|ileActio|
|00001290| 6e 20 61 63 74 69 6f 6e | 20 45 4e 44 50 29 0d 09 |n action| ENDP)..|
|000012a0| 7b 0d 09 72 65 74 75 72 | 6e 20 28 28 50 6c 75 67 |{..retur|n ((Plug|
|000012b0| 69 6e 2a 29 28 70 62 2d | 3e 6d 6f 64 75 6c 65 52 |in*)(pb-|>moduleR|
|000012c0| 65 66 63 6f 6e 29 29 2d | 3e 46 69 6c 65 4e 6f 74 |efcon))-|>FileNot|
|000012d0| 69 66 79 28 61 63 74 69 | 6f 6e 29 3b 0d 09 7d 0d |ify(acti|on);..}.|
|000012e0| 0d 0d 73 74 61 74 69 63 | 20 61 72 48 6f 6f 6b 52 |..static| arHookR|
|000012f0| 65 73 75 6c 74 20 4f 75 | 72 51 75 69 74 48 6f 6f |esult Ou|rQuitHoo|
|00001300| 6b 28 4d 6f 64 75 6c 65 | 50 61 72 61 6d 42 6c 6f |k(Module|ParamBlo|
|00001310| 63 6b 2a 20 70 62 20 45 | 4e 44 50 29 0d 09 7b 0d |ck* pb E|NDP)..{.|
|00001320| 09 72 65 74 75 72 6e 20 | 28 28 50 6c 75 67 69 6e |.return |((Plugin|
|00001330| 2a 29 28 70 62 2d 3e 6d | 6f 64 75 6c 65 52 65 66 |*)(pb->m|oduleRef|
|00001340| 63 6f 6e 29 29 2d 3e 51 | 75 69 74 4e 6f 74 69 66 |con))->Q|uitNotif|
|00001350| 79 28 29 3b 0d 09 7d 0d | 0d 0d 73 74 61 74 69 63 |y();..}.|..static|
|00001360| 20 76 6f 69 64 20 4f 75 | 72 41 54 4d 48 6f 6f 6b | void Ou|rATMHook|
|00001370| 28 4d 6f 64 75 6c 65 50 | 61 72 61 6d 42 6c 6f 63 |(ModuleP|aramBloc|
|00001380| 6b 2a 20 70 62 20 45 4e | 44 50 29 0d 09 7b 0d 09 |k* pb EN|DP)..{..|
|00001390| 28 28 50 6c 75 67 69 6e | 2a 29 28 70 62 2d 3e 6d |((Plugin|*)(pb->m|
|000013a0| 6f 64 75 6c 65 52 65 66 | 63 6f 6e 29 29 2d 3e 41 |oduleRef|con))->A|
|000013b0| 54 4d 4e 6f 74 69 66 79 | 28 29 3b 0d 09 7d 0d 0d |TMNotify|();..}..|
|000013c0| 0d 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |./******|********|
|000013d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001400| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 2f 2a 2a |********|***/./**|
|00001410| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00001430| 50 6c 75 67 69 6e 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |Plugin *|********|
|00001440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001450| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 2f 2a 2a 2a 2a 2a 2a |*******/|./******|
|00001460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001480| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001490| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014a0| 2a 2a 2a 2f 0d 0d 2f 2a | 20 43 6f 6e 73 74 72 75 |***/../*| Constru|
|000014b0| 63 74 20 61 20 50 6c 75 | 67 69 6e 20 6f 62 6a 65 |ct a Plu|gin obje|
|000014c0| 63 74 2e 20 20 54 68 69 | 73 20 69 73 20 63 61 6c |ct. Thi|s is cal|
|000014d0| 6c 65 64 20 6f 6e 63 65 | 2c 20 66 72 6f 6d 20 74 |led once|, from t|
|000014e0| 68 65 20 4f 75 72 4d 6f | 64 75 6c 65 52 6f 6f 74 |he OurMo|duleRoot|
|000014f0| 0d 20 2a 20 66 75 6e 63 | 74 69 6f 6e 2c 20 77 68 |. * func|tion, wh|
|00001500| 65 6e 20 74 68 65 20 6d | 6f 64 75 6c 65 20 69 73 |en the m|odule is|
|00001510| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 20 28 69 2e | initial|ized (i.|
|00001520| 65 2e 20 61 74 20 61 70 | 70 6c 69 63 61 74 69 6f |e. at ap|plicatio|
|00001530| 6e 20 73 74 61 72 74 75 | 70 20 74 69 6d 65 29 2e |n startu|p time).|
|00001540| 0d 20 2a 2f 0d 50 6c 75 | 67 69 6e 3a 3a 50 6c 75 |. */.Plu|gin::Plu|
|00001550| 67 69 6e 28 63 6f 6e 73 | 74 20 41 72 72 61 6e 67 |gin(cons|t Arrang|
|00001560| 65 43 61 6c 6c 62 61 63 | 6b 54 62 6c 2a 20 74 68 |eCallbac|kTbl* th|
|00001570| 65 43 61 6c 6c 73 29 0d | 09 7b 0d 09 2f 2f 20 52 |eCalls).|.{..// R|
|00001580| 65 63 6f 72 64 20 74 68 | 65 20 63 61 6c 6c 62 61 |ecord th|e callba|
|00001590| 63 6b 20 74 61 62 6c 65 | 20 66 6f 72 20 66 75 74 |ck table| for fut|
|000015a0| 75 72 65 20 75 73 65 2e | 0d 09 63 61 6c 6c 73 20 |ure use.|..calls |
|000015b0| 3d 20 74 68 65 43 61 6c | 6c 73 3b 0d 09 0d 09 2f |= theCal|ls;..../|
|000015c0| 2a 20 54 68 65 73 65 20 | 63 6f 6d 6d 61 6e 64 73 |* These |commands|
|000015d0| 2c 20 69 66 20 75 6e 2d | 63 6f 6d 6d 65 6e 74 65 |, if un-|commente|
|000015e0| 64 2d 6f 75 74 2c 20 72 | 65 67 69 73 74 65 72 20 |d-out, r|egister |
|000015f0| 74 68 69 73 20 70 6c 75 | 67 69 6e 20 74 6f 20 62 |this plu|gin to b|
|00001600| 65 20 63 61 6c 6c 65 64 | 0d 09 20 2a 20 62 79 20 |e called|.. * by |
|00001610| 41 72 72 61 6e 67 65 20 | 77 68 65 6e 20 76 61 72 |Arrange |when var|
|00001620| 69 6f 75 73 20 65 76 65 | 6e 74 73 20 6f 63 63 75 |ious eve|nts occu|
|00001630| 72 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |r. For |example,|
|00001640| 20 69 66 20 79 6f 75 20 | 75 6e 2d 63 6f 6d 6d 65 | if you |un-comme|
|00001650| 6e 74 2d 6f 75 74 0d 09 | 20 2a 20 74 68 65 20 63 |nt-out..| * the c|
|00001660| 61 6c 6c 20 74 6f 20 53 | 65 74 43 6c 69 63 6b 48 |all to S|etClickH|
|00001670| 6f 6f 6b 2c 20 74 68 65 | 6e 20 50 6c 75 67 69 6e |ook, the|n Plugin|
|00001680| 3a 3a 43 6c 69 63 6b 4e | 6f 74 69 66 79 20 77 69 |::ClickN|otify wi|
|00001690| 6c 6c 20 62 65 20 63 61 | 6c 6c 65 64 0d 09 20 2a |ll be ca|lled.. *|
|000016a0| 20 77 68 65 6e 65 76 65 | 72 20 74 68 65 20 75 73 | wheneve|r the us|
|000016b0| 65 72 20 63 6c 69 63 6b | 73 20 69 6e 20 61 6e 79 |er click|s in any|
|000016c0| 20 6f 66 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e | of the |location|
|000016d0| 73 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |s descri|bed in t|
|000016e0| 68 65 0d 09 20 2a 20 61 | 72 43 6c 69 63 6b 4c 6f |he.. * a|rClickLo|
|000016f0| 63 61 74 69 6f 6e 20 65 | 6e 75 6d 2e 0d 09 20 2a |cation e|num... *|
|00001700| 2f 0d 09 2f 2f 20 63 61 | 6c 6c 73 2d 3e 75 69 2d |/..// ca|lls->ui-|
|00001710| 3e 53 65 74 43 6c 69 63 | 6b 48 6f 6f 6b 28 4f 75 |>SetClic|kHook(Ou|
|00001720| 72 43 6c 69 63 6b 48 6f | 6f 6b 2c 20 30 2c 20 74 |rClickHo|ok, 0, t|
|00001730| 72 75 65 29 3b 0d 09 2f | 2f 20 63 61 6c 6c 73 2d |rue);../|/ calls-|
|00001740| 3e 75 69 2d 3e 53 65 74 | 4b 65 79 48 6f 6f 6b 20 |>ui->Set|KeyHook |
|00001750| 20 28 4f 75 72 4b 65 79 | 48 6f 6f 6b 2c 20 20 20 | (OurKey|Hook, |
|00001760| 30 2c 20 74 72 75 65 2c | 20 63 68 61 72 46 69 6c |0, true,| charFil|
|00001770| 74 65 72 2c 20 6b 65 79 | 46 69 6c 74 65 72 2c 20 |ter, key|Filter, |
|00001780| 6d 6f 64 46 69 6c 74 65 | 72 29 3b 0d 09 2f 2f 20 |modFilte|r);..// |
|00001790| 63 61 6c 6c 73 2d 3e 75 | 69 2d 3e 53 65 74 4d 65 |calls->u|i->SetMe|
|000017a0| 6e 75 48 6f 6f 6b 20 28 | 4f 75 72 4d 65 6e 75 48 |nuHook (|OurMenuH|
|000017b0| 6f 6f 6b 2c 20 20 30 2c | 20 74 72 75 65 2c 20 77 |ook, 0,| true, w|
|000017c0| 68 69 63 68 43 6f 6d 6d | 61 6e 64 29 3b 0d 09 2f |hichComm|and);../|
|000017d0| 2f 20 63 61 6c 6c 73 2d | 3e 75 69 2d 3e 53 65 74 |/ calls-|>ui->Set|
|000017e0| 46 69 65 6c 64 48 6f 6f | 6b 28 4f 75 72 46 69 65 |FieldHoo|k(OurFie|
|000017f0| 6c 64 48 6f 6f 6b 2c 20 | 30 2c 20 74 72 75 65 2c |ldHook, |0, true,|
|00001800| 20 77 68 69 63 68 46 69 | 65 6c 64 29 3b 0d 09 2f | whichFi|eld);../|
|00001810| 2f 20 63 61 6c 6c 73 2d | 3e 75 69 2d 3e 53 65 74 |/ calls-|>ui->Set|
|00001820| 54 6f 70 69 63 48 6f 6f | 6b 28 4f 75 72 54 6f 70 |TopicHoo|k(OurTop|
|00001830| 69 63 48 6f 6f 6b 2c 20 | 30 2c 20 74 72 75 65 29 |icHook, |0, true)|
|00001840| 3b 0d 09 2f 2f 20 63 61 | 6c 6c 73 2d 3e 75 69 2d |;..// ca|lls->ui-|
|00001850| 3e 53 65 74 54 69 63 6b | 48 6f 6f 6b 20 28 4f 75 |>SetTick|Hook (Ou|
|00001860| 72 54 69 63 6b 48 6f 6f | 6b 2c 20 20 30 2c 20 74 |rTickHoo|k, 0, t|
|00001870| 72 75 65 29 3b 0d 09 2f | 2f 20 63 61 6c 6c 73 2d |rue);../|/ calls-|
|00001880| 3e 75 69 2d 3e 53 65 74 | 46 69 6c 65 48 6f 6f 6b |>ui->Set|FileHook|
|00001890| 20 28 4f 75 72 46 69 6c | 65 48 6f 6f 6b 2c 20 20 | (OurFil|eHook, |
|000018a0| 30 2c 20 74 72 75 65 29 | 3b 0d 09 2f 2f 20 63 61 |0, true)|;..// ca|
|000018b0| 6c 6c 73 2d 3e 75 69 2d | 3e 53 65 74 51 75 69 74 |lls->ui-|>SetQuit|
|000018c0| 48 6f 6f 6b 20 28 4f 75 | 72 51 75 69 74 48 6f 6f |Hook (Ou|rQuitHoo|
|000018d0| 6b 2c 20 20 30 2c 20 74 | 72 75 65 29 3b 0d 09 63 |k, 0, t|rue);..c|
|000018e0| 61 6c 6c 73 2d 3e 75 69 | 2d 3e 53 65 74 41 54 4d |alls->ui|->SetATM|
|000018f0| 48 6f 6f 6b 20 20 28 4f | 75 72 41 54 4d 48 6f 6f |Hook (O|urATMHoo|
|00001900| 6b 2c 20 20 20 30 2c 20 | 74 72 75 65 29 3b 0d 09 |k, 0, |true);..|
|00001910| 0d 09 2f 2f 20 41 64 64 | 20 61 6e 20 69 74 65 6d |..// Add| an item|
|00001920| 20 74 6f 20 74 68 65 20 | 41 62 6f 75 74 20 50 6c | to the |About Pl|
|00001930| 75 67 69 6e 73 20 6d 65 | 6e 75 20 66 6f 72 20 74 |ugins me|nu for t|
|00001940| 68 69 73 20 70 6c 75 67 | 69 6e 2e 0d 09 63 61 6c |his plug|in...cal|
|00001950| 6c 73 2d 3e 75 69 2d 3e | 41 64 64 4d 65 6e 75 49 |ls->ui->|AddMenuI|
|00001960| 74 65 6d 28 6d 50 6c 75 | 67 69 6e 41 62 6f 75 74 |tem(mPlu|ginAbout|
|00001970| 2c 20 22 41 62 6f 75 74 | 20 53 65 6c 65 63 74 20 |, "About| Select |
|00001980| 53 75 62 6e 6f 74 65 73 | 22 2c 20 30 2c 20 61 62 |Subnotes|", 0, ab|
|00001990| 6f 75 74 43 6d 64 43 6f | 64 65 2c 20 30 29 3b 0d |outCmdCo|de, 0);.|
|000019a0| 09 0d 09 2f 2f 20 52 65 | 67 69 73 74 65 72 20 6f |...// Re|gister o|
|000019b0| 75 72 73 65 6c 76 65 73 | 20 74 6f 20 62 65 20 63 |urselves| to be c|
|000019c0| 61 6c 6c 65 64 20 77 68 | 65 6e 20 6f 75 72 20 41 |alled wh|en our A|
|000019d0| 62 6f 75 74 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |bout com|mand is |
|000019e0| 63 68 6f 73 65 6e 2e 0d | 09 63 61 6c 6c 73 2d 3e |chosen..|.calls->|
|000019f0| 75 69 2d 3e 53 65 74 4d | 65 6e 75 48 6f 6f 6b 28 |ui->SetM|enuHook(|
|00001a00| 4f 75 72 4d 65 6e 75 48 | 6f 6f 6b 2c 20 30 2c 20 |OurMenuH|ook, 0, |
|00001a10| 74 72 75 65 2c 20 61 62 | 6f 75 74 43 6d 64 43 6f |true, ab|outCmdCo|
|00001a20| 64 65 29 3b 0d 09 0d 09 | 2f 2f 20 43 72 65 61 74 |de);....|// Creat|
|00001a30| 65 2c 20 61 6e 64 20 72 | 65 67 69 73 74 65 72 20 |e, and r|egister |
|00001a40| 66 6f 72 2c 20 61 20 6e | 65 77 20 63 6f 6d 6d 61 |for, a n|ew comma|
|00001a50| 6e 64 20 69 6e 20 74 68 | 65 20 53 65 6c 65 63 74 |nd in th|e Select|
|00001a60| 20 73 75 62 6d 65 6e 75 | 2e 0d 09 63 61 6c 6c 73 | submenu|...calls|
|00001a70| 2d 3e 75 69 2d 3e 41 64 | 64 4d 65 6e 75 49 74 65 |->ui->Ad|dMenuIte|
|00001a80| 6d 28 6d 53 65 6c 65 63 | 74 2c 20 22 53 65 6c 65 |m(mSelec|t, "Sele|
|00001a90| 63 74 20 53 75 62 6e 6f | 74 65 73 22 2c 20 30 2c |ct Subno|tes", 0,|
|00001aa0| 20 73 65 6c 53 75 62 6e | 6f 74 65 73 43 6f 64 65 | selSubn|otesCode|
|00001ab0| 2c 20 30 29 3b 0d 09 63 | 61 6c 6c 73 2d 3e 75 69 |, 0);..c|alls->ui|
|00001ac0| 2d 3e 53 65 74 4d 65 6e | 75 48 6f 6f 6b 28 4f 75 |->SetMen|uHook(Ou|
|00001ad0| 72 4d 65 6e 75 48 6f 6f | 6b 2c 20 30 2c 20 74 72 |rMenuHoo|k, 0, tr|
|00001ae0| 75 65 2c 20 73 65 6c 53 | 75 62 6e 6f 74 65 73 43 |ue, selS|ubnotesC|
|00001af0| 6f 64 65 29 3b 0d 09 7d | 20 2f 2f 20 50 6c 75 67 |ode);..}| // Plug|
|00001b00| 69 6e 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 0d 0d |in const|ructor..|
|00001b10| 0d 2f 2a 20 44 69 73 70 | 6f 73 65 20 6f 66 20 61 |./* Disp|ose of a|
|00001b20| 20 50 6c 75 67 69 6e 20 | 6f 62 6a 65 63 74 2e 20 | Plugin |object. |
|00001b30| 20 54 68 69 73 20 69 73 | 20 63 61 6c 6c 65 64 20 | This is| called |
|00001b40| 77 68 65 6e 20 41 72 72 | 61 6e 67 65 20 74 65 72 |when Arr|ange ter|
|00001b50| 6d 69 6e 61 74 65 73 2e | 20 20 59 6f 75 0d 20 2a |minates.| You. *|
|00001b60| 20 73 68 6f 75 6c 64 20 | 66 72 65 65 20 75 70 20 | should |free up |
|00001b70| 61 6e 79 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |any data| structu|
|00001b80| 72 65 73 20 77 68 69 63 | 68 20 79 6f 75 20 61 6c |res whic|h you al|
|00001b90| 6c 6f 63 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |location| in the |
|00001ba0| 50 6c 75 67 69 6e 0d 20 | 2a 20 63 6f 6e 73 74 72 |Plugin. |* constr|
|00001bb0| 75 63 74 6f 72 20 28 61 | 62 6f 76 65 29 2e 0d 20 |uctor (a|bove).. |
|00001bc0| 2a 2f 0d 50 6c 75 67 69 | 6e 3a 3a 7e 50 6c 75 67 |*/.Plugi|n::~Plug|
|00001bd0| 69 6e 28 29 0d 09 7b 0d | 09 7d 20 2f 2f 20 7e 50 |in()..{.|.} // ~P|
|00001be0| 6c 75 67 69 6e 0d 0d 0d | 2f 2a 20 54 68 69 73 20 |lugin...|/* This |
|00001bf0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 63 61 6c 6c |function| is call|
|00001c00| 65 64 20 77 68 65 6e 65 | 76 65 72 20 74 68 65 20 |ed whene|ver the |
|00001c10| 75 73 65 72 20 63 6c 69 | 63 6b 73 20 69 6e 20 61 |user cli|cks in a|
|00001c20| 6e 20 22 69 6e 74 65 72 | 65 73 74 69 6e 67 20 70 |n "inter|esting p|
|00001c30| 6c 61 63 65 22 0d 20 2a | 20 69 6e 20 61 20 64 6f |lace". *| in a do|
|00001c40| 63 75 6d 65 6e 74 20 77 | 69 6e 64 6f 77 2e 20 20 |cument w|indow. |
|00001c50| 49 74 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |It shoul|d return|
|00001c60| 20 74 72 75 65 20 69 66 | 20 77 65 20 68 61 6e 64 | true if| we hand|
|00001c70| 6c 65 20 74 68 65 20 63 | 6c 69 63 6b 2c 20 66 61 |le the c|lick, fa|
|00001c80| 6c 73 65 0d 20 2a 20 28 | 74 68 65 20 6e 6f 72 6d |lse. * (|the norm|
|00001c90| 61 6c 20 63 61 73 65 29 | 20 77 68 65 6e 20 74 68 |al case)| when th|
|00001ca0| 65 20 63 6c 69 63 6b 20 | 73 68 6f 75 6c 64 20 62 |e click |should b|
|00001cb0| 65 20 70 61 73 73 65 64 | 20 61 6c 6f 6e 67 20 74 |e passed| along t|
|00001cc0| 6f 20 6f 74 68 65 72 20 | 70 6c 75 67 2d 69 6e 73 |o other |plug-ins|
|00001cd0| 0d 20 2a 20 6f 72 20 74 | 6f 20 41 72 72 61 6e 67 |. * or t|o Arrang|
|00001ce0| 65 27 73 20 6e 6f 72 6d | 61 6c 20 65 76 65 6e 74 |e's norm|al event|
|00001cf0| 20 70 72 6f 63 65 73 73 | 69 6e 67 2e 20 20 53 65 | process|ing. Se|
|00001d00| 65 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |e the do|cumentat|
|00001d10| 69 6f 6e 20 66 6f 72 0d | 20 2a 20 53 65 74 43 6c |ion for.| * SetCl|
|00001d20| 69 63 6b 48 6f 6f 6b 20 | 66 6f 72 20 6d 6f 72 65 |ickHook |for more|
|00001d30| 20 64 65 74 61 69 6c 73 | 2e 0d 20 2a 2f 0d 61 72 | details|.. */.ar|
|00001d40| 48 6f 6f 6b 52 65 73 75 | 6c 74 20 50 6c 75 67 69 |HookResu|lt Plugi|
|00001d50| 6e 3a 3a 43 6c 69 63 6b | 4e 6f 74 69 66 79 28 20 |n::Click|Notify( |
|00001d60| 61 72 43 6c 69 63 6b 4c | 6f 63 61 74 69 6f 6e 20 |arClickL|ocation |
|00001d70| 2f 2a 6c 6f 63 2a 2f 2c | 20 50 6f 69 6e 74 20 2f |/*loc*/,| Point /|
|00001d80| 2a 77 68 65 72 65 2a 2f | 2c 0d 09 09 09 09 09 09 |*where*/|,.......|
|00001d90| 09 09 09 09 09 20 53 68 | 6f 72 74 20 2f 2a 6d 6f |..... Sh|ort /*mo|
|00001da0| 64 69 66 69 65 72 73 2a | 2f 2c 20 53 68 6f 72 74 |difiers*|/, Short|
|00001db0| 20 2f 2a 63 6c 69 63 6b | 43 6f 75 6e 74 2a 2f 2c | /*click|Count*/,|
|00001dc0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 20 61 72 4e |........|.... arN|
|00001dd0| 6f 74 65 49 44 20 2f 2a | 6e 6f 74 65 2a 2f 2c 20 |oteID /*|note*/, |
|00001de0| 61 72 46 69 65 6c 64 49 | 44 20 2f 2a 66 69 65 6c |arFieldI|D /*fiel|
|00001df0| 64 2a 2f 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |d*/,....|........|
|00001e00| 20 61 72 50 61 74 68 49 | 44 20 2f 2a 70 61 74 68 | arPathI|D /*path|
|00001e10| 2a 2f 20 29 0d 09 7b 0d | 09 72 65 74 75 72 6e 20 |*/ )..{.|.return |
|00001e20| 66 61 6c 73 65 3b 20 2f | 2f 20 4c 65 74 20 41 72 |false; /|/ Let Ar|
|00001e30| 72 61 6e 67 65 20 68 61 | 6e 64 6c 65 20 74 68 65 |range ha|ndle the|
|00001e40| 20 65 76 65 6e 74 0d 09 | 7d 20 2f 2f 20 43 6c 69 | event..|} // Cli|
|00001e50| 63 6b 4e 6f 74 69 66 79 | 0d 0d 0d 2f 2a 20 54 68 |ckNotify|.../* Th|
|00001e60| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00001e70| 61 6c 6c 65 64 20 77 68 | 65 6e 65 76 65 72 20 74 |alled wh|enever t|
|00001e80| 68 65 20 75 73 65 72 20 | 74 79 70 65 73 20 61 20 |he user |types a |
|00001e90| 6b 65 79 20 77 68 69 63 | 68 20 6d 61 74 63 68 65 |key whic|h matche|
|00001ea0| 73 20 74 68 65 0d 20 2a | 20 66 69 6c 74 65 72 73 |s the. *| filters|
|00001eb0| 20 77 65 20 70 61 73 73 | 20 74 6f 20 53 65 74 4b | we pass| to SetK|
|00001ec0| 65 79 48 6f 6f 6b 20 69 | 6e 20 50 6c 75 67 69 6e |eyHook i|n Plugin|
|00001ed0| 27 73 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 2e 20 |'s const|ructor. |
|00001ee0| 20 49 74 20 73 68 6f 75 | 6c 64 20 72 65 74 75 72 | It shou|ld retur|
|00001ef0| 6e 0d 20 2a 20 74 72 75 | 65 20 69 66 20 77 65 20 |n. * tru|e if we |
|00001f00| 68 61 6e 64 6c 65 20 74 | 68 65 20 65 76 65 6e 74 |handle t|he event|
|00001f10| 2c 20 66 61 6c 73 65 20 | 28 74 68 65 20 6e 6f 72 |, false |(the nor|
|00001f20| 6d 61 6c 20 63 61 73 65 | 29 20 77 68 65 6e 20 74 |mal case|) when t|
|00001f30| 68 65 20 65 76 65 6e 74 | 0d 20 2a 20 73 68 6f 75 |he event|. * shou|
|00001f40| 6c 64 20 62 65 20 70 61 | 73 73 65 64 20 61 6c 6f |ld be pa|ssed alo|
|00001f50| 6e 67 20 74 6f 20 6f 74 | 68 65 72 20 70 6c 75 67 |ng to ot|her plug|
|00001f60| 2d 69 6e 73 20 6f 72 20 | 74 6f 20 41 72 72 61 6e |-ins or |to Arran|
|00001f70| 67 65 27 73 20 6e 6f 72 | 6d 61 6c 20 65 76 65 6e |ge's nor|mal even|
|00001f80| 74 0d 20 2a 20 70 72 6f | 63 65 73 73 69 6e 67 2e |t. * pro|cessing.|
|00001f90| 20 20 53 65 65 20 74 68 | 65 20 64 6f 63 75 6d 65 | See th|e docume|
|00001fa0| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 53 65 74 4b |ntation |for SetK|
|00001fb0| 65 79 48 6f 6f 6b 20 66 | 6f 72 20 6d 6f 72 65 20 |eyHook f|or more |
|00001fc0| 64 65 74 61 69 6c 73 2e | 0d 20 2a 2f 0d 61 72 48 |details.|. */.arH|
|00001fd0| 6f 6f 6b 52 65 73 75 6c | 74 20 50 6c 75 67 69 6e |ookResul|t Plugin|
|00001fe0| 3a 3a 4b 65 79 4e 6f 74 | 69 66 79 28 20 53 68 6f |::KeyNot|ify( Sho|
|00001ff0| 72 74 20 2f 2a 74 68 65 | 43 68 61 72 2a 2f 2c 20 |rt /*the|Char*/, |
|00002000| 53 68 6f 72 74 20 2f 2a | 6b 65 79 2a 2f 2c 0d 09 |Short /*|key*/,..|
|00002010| 09 09 09 09 09 09 09 09 | 09 20 20 53 68 6f 72 74 |........|. Short|
|00002020| 20 2f 2a 6d 6f 64 69 66 | 69 65 72 73 2a 2f 29 0d | /*modif|iers*/).|
|00002030| 09 7b 0d 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |.{..retu|rn false|
|00002040| 3b 20 2f 2f 20 4c 65 74 | 20 41 72 72 61 6e 67 65 |; // Let| Arrange|
|00002050| 20 68 61 6e 64 6c 65 20 | 74 68 65 20 65 76 65 6e | handle |the even|
|00002060| 74 0d 09 7d 20 2f 2f 20 | 4b 65 79 4e 6f 74 69 66 |t..} // |KeyNotif|
|00002070| 79 0d 0d 0d 2f 2a 20 54 | 68 69 73 20 66 75 6e 63 |y.../* T|his func|
|00002080| 74 69 6f 6e 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |tion is |called w|
|00002090| 68 65 6e 65 76 65 72 20 | 74 68 65 20 75 73 65 72 |henever |the user|
|000020a0| 20 63 68 6f 6f 73 65 73 | 20 61 20 6d 65 6e 75 20 | chooses| a menu |
|000020b0| 69 74 65 6d 20 66 6f 72 | 20 77 68 69 63 68 0d 20 |item for| which. |
|000020c0| 2a 20 77 65 20 68 61 76 | 65 20 72 65 67 69 73 74 |* we hav|e regist|
|000020d0| 65 72 65 64 20 28 76 69 | 61 20 74 68 65 20 53 65 |ered (vi|a the Se|
|000020e0| 74 4d 65 6e 75 48 6f 6f | 6b 20 66 75 6e 63 74 69 |tMenuHoo|k functi|
|000020f0| 6f 6e 29 2e 20 20 49 74 | 20 73 68 6f 75 6c 64 20 |on). It| should |
|00002100| 72 65 74 75 72 6e 20 74 | 72 75 65 0d 20 2a 20 69 |return t|rue. * i|
|00002110| 66 20 77 65 20 68 61 6e | 64 6c 65 20 74 68 65 20 |f we han|dle the |
|00002120| 63 6f 6d 6d 61 6e 64 2c | 20 66 61 6c 73 65 20 28 |command,| false (|
|00002130| 74 68 65 20 6e 6f 72 6d | 61 6c 20 63 61 73 65 29 |the norm|al case)|
|00002140| 20 77 68 65 6e 20 74 68 | 65 20 63 6f 6d 6d 61 6e | when th|e comman|
|00002150| 64 20 73 68 6f 75 6c 64 | 0d 20 2a 20 62 65 20 70 |d should|. * be p|
|00002160| 61 73 73 65 64 20 61 6c | 6f 6e 67 20 74 6f 20 6f |assed al|ong to o|
|00002170| 74 68 65 72 20 70 6c 75 | 67 2d 69 6e 73 20 6f 72 |ther plu|g-ins or|
|00002180| 20 74 6f 20 41 72 72 61 | 6e 67 65 27 73 20 6e 6f | to Arra|nge's no|
|00002190| 72 6d 61 6c 20 65 76 65 | 6e 74 20 70 72 6f 63 65 |rmal eve|nt proce|
|000021a0| 73 73 69 6e 67 2e 0d 20 | 2a 20 53 65 65 20 74 68 |ssing.. |* See th|
|000021b0| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|000021c0| 66 6f 72 20 53 65 74 4d | 65 6e 75 48 6f 6f 6b 20 |for SetM|enuHook |
|000021d0| 66 6f 72 20 6d 6f 72 65 | 20 64 65 74 61 69 6c 73 |for more| details|
|000021e0| 2e 0d 20 2a 2f 0d 61 72 | 48 6f 6f 6b 52 65 73 75 |.. */.ar|HookResu|
|000021f0| 6c 74 20 50 6c 75 67 69 | 6e 3a 3a 4d 65 6e 75 4e |lt Plugi|n::MenuN|
|00002200| 6f 74 69 66 79 28 20 49 | 6e 74 65 67 65 72 20 63 |otify( I|nteger c|
|00002210| 6f 6d 6d 61 6e 64 43 6f | 64 65 2c 20 49 6e 74 65 |ommandCo|de, Inte|
|00002220| 67 65 72 20 2f 2a 63 6f | 6d 6d 61 6e 64 50 61 72 |ger /*co|mmandPar|
|00002230| 61 6d 2a 2f 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |am*/,...|........|
|00002240| 09 53 68 6f 72 74 20 6d | 6f 64 69 66 69 65 72 73 |.Short m|odifiers|
|00002250| 20 29 0d 09 7b 0d 09 2f | 2a 20 49 66 20 74 68 69 | )..{../|* If thi|
|00002260| 73 20 69 73 20 6f 75 72 | 20 41 62 6f 75 74 20 6d |s is our| About m|
|00002270| 65 6e 75 20 69 74 65 6d | 2c 20 64 69 73 70 6c 61 |enu item|, displa|
|00002280| 79 20 6f 75 72 20 61 62 | 6f 75 74 2d 62 6f 78 20 |y our ab|out-box |
|00002290| 64 69 61 6c 6f 67 20 61 | 6e 64 20 72 65 74 75 72 |dialog a|nd retur|
|000022a0| 6e 0d 09 20 2a 20 74 72 | 75 65 20 74 6f 20 69 6e |n.. * tr|ue to in|
|000022b0| 64 69 63 61 74 65 20 77 | 65 20 68 61 6e 64 6c 65 |dicate w|e handle|
|000022c0| 64 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 2e 0d 09 |d the co|mmand...|
|000022d0| 20 2a 2f 0d 09 69 66 20 | 28 63 6f 6d 6d 61 6e 64 | */..if |(command|
|000022e0| 43 6f 64 65 20 3d 3d 20 | 61 62 6f 75 74 43 6d 64 |Code == |aboutCmd|
|000022f0| 43 6f 64 65 29 0d 09 09 | 7b 0d 09 09 41 6c 65 72 |Code)...|{...Aler|
|00002300| 74 28 4d 6f 64 75 6c 65 | 52 73 72 63 49 44 2c 20 |t(Module|RsrcID, |
|00002310| 6e 69 6c 29 3b 0d 09 09 | 72 65 74 75 72 6e 20 74 |nil);...|return t|
|00002320| 72 75 65 3b 0d 09 09 7d | 0d 09 65 6c 73 65 20 69 |rue;...}|..else i|
|00002330| 66 20 28 63 6f 6d 6d 61 | 6e 64 43 6f 64 65 20 3d |f (comma|ndCode =|
|00002340| 3d 20 73 65 6c 53 75 62 | 6e 6f 74 65 73 43 6f 64 |= selSub|notesCod|
|00002350| 65 29 0d 09 09 7b 0d 09 | 09 44 6f 53 65 6c 65 63 |e)...{..|.DoSelec|
|00002360| 74 53 75 62 6e 6f 74 65 | 73 28 28 6d 6f 64 69 66 |tSubnote|s((modif|
|00002370| 69 65 72 73 20 26 20 73 | 68 69 66 74 4b 65 79 29 |iers & s|hiftKey)|
|00002380| 20 21 3d 20 30 29 3b 0d | 09 09 72 65 74 75 72 6e | != 0);.|..return|
|00002390| 20 74 72 75 65 3b 0d 09 | 09 7d 0d 09 65 6c 73 65 | true;..|.}..else|
|000023a0| 0d 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|000023b0| 20 2f 2f 20 4c 65 74 20 | 41 72 72 61 6e 67 65 20 | // Let |Arrange |
|000023c0| 68 61 6e 64 6c 65 20 74 | 68 65 20 65 76 65 6e 74 |handle t|he event|
|000023d0| 0d 09 0d 09 7d 20 2f 2f | 20 4d 65 6e 75 4e 6f 74 |....} //| MenuNot|
|000023e0| 69 66 79 0d 0d 0d 2f 2a | 20 49 66 20 77 65 20 72 |ify.../*| If we r|
|000023f0| 65 67 69 73 74 65 72 20 | 74 6f 20 72 65 63 69 65 |egister |to recie|
|00002400| 76 65 20 65 76 65 6e 74 | 73 20 66 6f 72 20 61 20 |ve event|s for a |
|00002410| 66 69 65 6c 64 20 62 79 | 20 63 61 6c 6c 69 6e 67 |field by| calling|
|00002420| 20 53 65 74 46 69 65 6c | 64 48 6f 6f 6b 2c 20 74 | SetFiel|dHook, t|
|00002430| 68 69 73 0d 20 2a 20 66 | 75 6e 63 74 69 6f 6e 20 |his. * f|unction |
|00002440| 77 69 6c 6c 20 62 65 20 | 63 61 6c 6c 65 64 20 66 |will be |called f|
|00002450| 6f 72 20 61 6e 79 20 65 | 76 65 6e 74 73 20 69 6e |or any e|vents in|
|00002460| 20 74 68 61 74 20 66 69 | 65 6c 64 2e 20 20 49 74 | that fi|eld. It|
|00002470| 20 73 68 6f 75 6c 64 20 | 72 65 74 75 72 6e 0d 20 | should |return. |
|00002480| 2a 20 66 61 6c 73 65 20 | 69 6e 20 61 6c 6d 6f 73 |* false |in almos|
|00002490| 74 20 61 6c 6c 20 63 61 | 73 65 73 2e 20 20 53 65 |t all ca|ses. Se|
|000024a0| 65 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |e the do|cumentat|
|000024b0| 69 6f 6e 20 66 6f 72 20 | 53 65 74 46 69 65 6c 64 |ion for |SetField|
|000024c0| 48 6f 6f 6b 20 66 6f 72 | 0d 20 2a 20 6d 6f 72 65 |Hook for|. * more|
|000024d0| 20 64 65 74 61 69 6c 73 | 2e 0d 20 2a 2f 0d 61 72 | details|.. */.ar|
|000024e0| 48 6f 6f 6b 52 65 73 75 | 6c 74 20 50 6c 75 67 69 |HookResu|lt Plugi|
|000024f0| 6e 3a 3a 46 69 65 6c 64 | 4e 6f 74 69 66 79 28 20 |n::Field|Notify( |
|00002500| 61 72 4e 6f 74 65 49 44 | 20 2f 2a 6e 6f 74 65 2a |arNoteID| /*note*|
|00002510| 2f 2c 20 61 72 46 69 65 | 6c 64 49 44 20 2f 2a 66 |/, arFie|ldID /*f|
|00002520| 69 65 6c 64 2a 2f 2c 0d | 09 09 09 09 09 09 09 09 |ield*/,.|........|
|00002530| 09 09 09 20 61 72 46 69 | 65 6c 64 41 63 74 69 6f |... arFi|eldActio|
|00002540| 6e 20 2f 2a 61 63 74 69 | 6f 6e 2a 2f 2c 0d 09 09 |n /*acti|on*/,...|
|00002550| 09 09 09 09 09 09 09 09 | 09 20 63 6f 6e 73 74 20 |........|. const |
|00002560| 63 68 61 72 2a 20 2f 2a | 63 68 6f 69 63 65 54 65 |char* /*|choiceTe|
|00002570| 78 74 2a 2f 20 29 0d 09 | 7b 0d 09 72 65 74 75 72 |xt*/ )..|{..retur|
|00002580| 6e 20 66 61 6c 73 65 3b | 0d 09 7d 20 2f 2f 20 46 |n false;|..} // F|
|00002590| 69 65 6c 64 4e 6f 74 69 | 66 79 0d 0d 0d 2f 2a 20 |ieldNoti|fy.../* |
|000025a0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|000025b0| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 65 76 65 72 | called |whenever|
|000025c0| 20 74 68 65 20 75 73 65 | 72 20 73 77 69 74 63 68 | the use|r switch|
|000025d0| 65 73 20 77 69 6e 64 6f | 77 73 20 6f 72 20 63 68 |es windo|ws or ch|
|000025e0| 61 6e 67 65 73 0d 20 2a | 20 74 68 65 20 63 75 72 |anges. *| the cur|
|000025f0| 72 65 6e 74 20 66 6f 6c | 64 65 72 2f 74 6f 70 69 |rent fol|der/topi|
|00002600| 63 2f 76 69 65 77 20 69 | 6e 20 74 68 65 20 66 72 |c/view i|n the fr|
|00002610| 6f 6e 74 20 77 69 6e 64 | 6f 77 2e 20 20 53 65 65 |ont wind|ow. See|
|00002620| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | the doc|umentati|
|00002630| 6f 6e 0d 20 2a 20 66 6f | 72 20 53 65 74 54 6f 70 |on. * fo|r SetTop|
|00002640| 69 63 48 6f 6f 6b 20 66 | 6f 72 20 6d 6f 72 65 20 |icHook f|or more |
|00002650| 64 65 74 61 69 6c 73 2e | 0d 20 2a 2f 0d 76 6f 69 |details.|. */.voi|
|00002660| 64 20 50 6c 75 67 69 6e | 3a 3a 54 6f 70 69 63 4e |d Plugin|::TopicN|
|00002670| 6f 74 69 66 79 28 20 61 | 72 54 6f 70 69 63 49 44 |otify( a|rTopicID|
|00002680| 20 2f 2a 6e 65 77 54 6f | 70 69 63 2a 2f 2c 20 61 | /*newTo|pic*/, a|
|00002690| 72 57 69 6e 64 6f 77 49 | 44 20 2f 2a 6e 65 77 57 |rWindowI|D /*newW|
|000026a0| 69 6e 64 6f 77 2a 2f 2c | 0d 09 09 09 09 09 09 09 |indow*/,|........|
|000026b0| 09 20 20 61 72 54 6f 70 | 69 63 41 63 74 69 6f 6e |. arTop|icAction|
|000026c0| 20 2f 2a 61 63 74 69 6f | 6e 2a 2f 20 29 0d 09 7b | /*actio|n*/ )..{|
|000026d0| 0d 09 7d 20 2f 2f 20 54 | 6f 70 69 63 4e 6f 74 69 |..} // T|opicNoti|
|000026e0| 66 79 0d 0d 0d 2f 2a 20 | 54 68 69 73 20 66 75 6e |fy.../* |This fun|
|000026f0| 63 74 69 6f 6e 20 69 73 | 20 63 61 6c 6c 65 64 20 |ction is| called |
|00002700| 70 65 72 69 6f 64 69 63 | 61 6c 6c 79 2c 20 77 68 |periodic|ally, wh|
|00002710| 65 6e 65 76 65 72 20 41 | 72 72 61 6e 67 65 20 72 |enever A|rrange r|
|00002720| 65 63 69 65 76 65 73 20 | 61 20 6e 75 6c 6c 0d 20 |ecieves |a null. |
|00002730| 2a 20 65 76 65 6e 74 20 | 66 72 6f 6d 20 74 68 65 |* event |from the|
|00002740| 20 45 76 65 6e 74 20 4d | 61 6e 61 67 65 72 2e 0d | Event M|anager..|
|00002750| 20 2a 2f 0d 76 6f 69 64 | 20 50 6c 75 67 69 6e 3a | */.void| Plugin:|
|00002760| 3a 54 69 63 6b 4e 6f 74 | 69 66 79 28 29 0d 09 7b |:TickNot|ify()..{|
|00002770| 0d 09 7d 20 2f 2f 20 54 | 69 63 6b 4e 6f 74 69 66 |..} // T|ickNotif|
|00002780| 79 0d 0d 0d 2f 2a 20 54 | 68 69 73 20 66 75 6e 63 |y.../* T|his func|
|00002790| 74 69 6f 6e 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |tion is |called w|
|000027a0| 68 65 6e 65 76 65 72 20 | 76 61 72 69 6f 75 73 20 |henever |various |
|000027b0| 66 69 6c 65 2d 6c 65 76 | 65 6c 20 65 76 65 6e 74 |file-lev|el event|
|000027c0| 73 20 6f 63 63 75 72 2e | 20 20 49 74 0d 20 2a 20 |s occur.| It. * |
|000027d0| 73 68 6f 75 6c 64 20 72 | 65 74 75 72 6e 20 74 72 |should r|eturn tr|
|000027e0| 75 65 20 69 6e 20 61 6c | 6d 6f 73 74 20 61 6c 6c |ue in al|most all|
|000027f0| 20 63 61 73 65 73 2e 20 | 20 53 65 65 20 74 68 65 | cases. | See the|
|00002800| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|00002810| 6f 72 0d 20 2a 20 53 65 | 74 46 69 6c 65 48 6f 6f |or. * Se|tFileHoo|
|00002820| 6b 20 66 6f 72 20 6d 6f | 72 65 20 64 65 74 61 69 |k for mo|re detai|
|00002830| 6c 73 2e 0d 20 2a 2f 0d | 61 72 48 6f 6f 6b 52 65 |ls.. */.|arHookRe|
|00002840| 73 75 6c 74 20 50 6c 75 | 67 69 6e 3a 3a 46 69 6c |sult Plu|gin::Fil|
|00002850| 65 4e 6f 74 69 66 79 28 | 61 72 46 69 6c 65 41 63 |eNotify(|arFileAc|
|00002860| 74 69 6f 6e 20 2f 2a 61 | 63 74 69 6f 6e 2a 2f 29 |tion /*a|ction*/)|
|00002870| 0d 09 7b 0d 09 72 65 74 | 75 72 6e 20 74 72 75 65 |..{..ret|urn true|
|00002880| 3b 0d 09 7d 20 2f 2f 20 | 46 69 6c 65 4e 6f 74 69 |;..} // |FileNoti|
|00002890| 66 79 0d 0d 0d 2f 2a 20 | 54 68 69 73 20 66 75 6e |fy.../* |This fun|
|000028a0| 63 74 69 6f 6e 20 69 73 | 20 63 61 6c 6c 65 64 20 |ction is| called |
|000028b0| 69 66 20 74 68 65 20 75 | 73 65 72 20 76 6f 6c 75 |if the u|ser volu|
|000028c0| 6e 74 61 72 69 6c 79 20 | 71 75 69 74 73 20 41 72 |ntarily |quits Ar|
|000028d0| 72 61 6e 67 65 2e 20 20 | 49 74 20 73 68 6f 75 6c |range. |It shoul|
|000028e0| 64 0d 20 2a 20 72 65 74 | 75 72 6e 20 74 72 75 65 |d. * ret|urn true|
|000028f0| 20 74 6f 20 61 6c 6c 6f | 77 20 74 68 65 20 75 73 | to allo|w the us|
|00002900| 65 72 20 74 6f 20 71 75 | 69 74 2c 20 66 61 6c 73 |er to qu|it, fals|
|00002910| 65 20 74 6f 20 70 72 65 | 76 65 6e 74 20 69 74 2e |e to pre|vent it.|
|00002920| 20 20 53 65 65 20 74 68 | 65 0d 20 2a 20 64 6f 63 | See th|e. * doc|
|00002930| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 6f 72 20 53 |umentati|on for S|
|00002940| 65 74 51 75 69 74 48 6f | 6f 6b 20 66 6f 72 20 6d |etQuitHo|ok for m|
|00002950| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0d 20 2a 2f |ore deta|ils.. */|
|00002960| 0d 61 72 48 6f 6f 6b 52 | 65 73 75 6c 74 20 50 6c |.arHookR|esult Pl|
|00002970| 75 67 69 6e 3a 3a 51 75 | 69 74 4e 6f 74 69 66 79 |ugin::Qu|itNotify|
|00002980| 28 29 0d 09 7b 0d 09 72 | 65 74 75 72 6e 20 74 72 |()..{..r|eturn tr|
|00002990| 75 65 3b 0d 09 7d 20 2f | 2f 20 51 75 69 74 4e 6f |ue;..} /|/ QuitNo|
|000029a0| 74 69 66 79 0d 0d 0d 2f | 2a 20 54 68 69 73 20 66 |tify.../|* This f|
|000029b0| 75 6e 63 74 69 6f 6e 20 | 69 73 20 63 61 6c 6c 65 |unction |is calle|
|000029c0| 64 20 77 68 65 6e 65 76 | 65 72 20 74 68 65 20 75 |d whenev|er the u|
|000029d0| 73 65 72 20 63 6c 69 63 | 6b 73 20 69 6e 20 74 68 |ser clic|ks in th|
|000029e0| 65 20 6d 65 6e 75 20 62 | 61 72 20 6f 72 20 74 79 |e menu b|ar or ty|
|000029f0| 70 65 73 0d 20 2a 20 61 | 20 63 6f 6d 6d 61 6e 64 |pes. * a| command|
|00002a00| 20 6b 65 79 2c 20 6a 75 | 73 74 20 62 65 66 6f 72 | key, ju|st befor|
|00002a10| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 20 74 68 65 |e proces|sing the|
|00002a20| 20 65 76 65 6e 74 2e 20 | 20 49 74 20 73 68 6f 75 | event. | It shou|
|00002a30| 6c 64 20 64 6f 20 61 6e | 79 20 66 69 78 69 6e 67 |ld do an|y fixing|
|00002a40| 0d 20 2a 20 75 70 20 6f | 66 20 6d 65 6e 75 73 20 |. * up o|f menus |
|00002a50| 77 68 69 63 68 20 6d 69 | 67 68 74 20 62 65 20 6e |which mi|ght be n|
|00002a60| 65 63 65 73 73 61 72 79 | 20 62 61 73 65 64 20 6f |ecessary| based o|
|00002a70| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 74 |n the cu|rrent st|
|00002a80| 61 74 65 20 6f 66 20 61 | 66 66 61 69 72 73 2e 0d |ate of a|ffairs..|
|00002a90| 20 2a 20 53 65 65 20 74 | 68 65 20 64 6f 63 75 6d | * See t|he docum|
|00002aa0| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 53 65 74 |entation| for Set|
|00002ab0| 41 54 4d 48 6f 6f 6b 20 | 66 6f 72 20 6d 6f 72 65 |ATMHook |for more|
|00002ac0| 20 64 65 74 61 69 6c 73 | 2e 0d 20 2a 2f 0d 76 6f | details|.. */.vo|
|00002ad0| 69 64 20 50 6c 75 67 69 | 6e 3a 3a 41 54 4d 4e 6f |id Plugi|n::ATMNo|
|00002ae0| 74 69 66 79 28 29 0d 09 | 7b 0d 09 2f 2a 20 45 6e |tify()..|{../* En|
|00002af0| 61 62 6c 65 20 6f 72 20 | 64 69 73 61 62 6c 65 20 |able or |disable |
|00002b00| 74 68 65 20 53 65 6c 65 | 63 74 20 53 75 62 6e 6f |the Sele|ct Subno|
|00002b10| 74 65 73 20 63 6f 6d 6d | 61 6e 64 20 64 65 70 65 |tes comm|and depe|
|00002b20| 6e 64 69 6e 67 20 6f 6e | 20 77 68 65 74 68 65 72 |nding on| whether|
|00002b30| 20 74 68 65 72 65 0d 09 | 20 2a 20 69 73 20 61 20 | there..| * is a |
|00002b40| 73 65 6c 65 63 74 69 6f | 6e 2e 0d 09 20 2a 2f 0d |selectio|n... */.|
|00002b50| 09 61 72 4e 6f 74 65 49 | 44 20 73 65 6c 4e 6f 74 |.arNoteI|D selNot|
|00002b60| 65 3b 0d 09 61 72 46 69 | 65 6c 64 49 44 20 73 65 |e;..arFi|eldID se|
|00002b70| 6c 46 69 65 6c 64 3b 0d | 09 49 6e 74 65 67 65 72 |lField;.|.Integer|
|00002b80| 20 73 65 6c 53 74 61 72 | 74 2c 73 65 6c 45 6e 64 | selStar|t,selEnd|
|00002b90| 3b 0d 09 42 6f 6f 6c 65 | 61 6e 20 68 61 73 53 65 |;..Boole|an hasSe|
|00002ba0| 6c 20 3d 20 28 63 61 6c | 6c 73 2d 3e 73 65 6c 2d |l = (cal|ls->sel-|
|00002bb0| 3e 47 65 74 53 65 6c 65 | 63 74 69 6f 6e 28 20 26 |>GetSele|ction( &|
|00002bc0| 73 65 6c 4e 6f 74 65 2c | 20 26 73 65 6c 46 69 65 |selNote,| &selFie|
|00002bd0| 6c 64 2c 0d 09 09 09 09 | 09 09 09 09 09 09 09 09 |ld,.....|........|
|00002be0| 09 09 09 20 20 26 73 65 | 6c 53 74 61 72 74 2c 20 |... &se|lStart, |
|00002bf0| 26 73 65 6c 45 6e 64 20 | 29 20 21 3d 20 73 74 4e |&selEnd |) != stN|
|00002c00| 6f 6e 65 29 3b 0d 09 0d | 09 63 61 6c 6c 73 2d 3e |one);...|.calls->|
|00002c10| 75 69 2d 3e 53 65 74 4d | 65 6e 75 49 74 65 6d 28 |ui->SetM|enuItem(|
|00002c20| 20 6d 53 65 6c 65 63 74 | 2c 20 73 65 6c 53 75 62 | mSelect|, selSub|
|00002c30| 6e 6f 74 65 73 43 6f 64 | 65 2c 20 30 2c 20 6e 69 |notesCod|e, 0, ni|
|00002c40| 6c 2c 20 68 61 73 53 65 | 6c 2c 0d 09 09 09 09 09 |l, hasSe|l,......|
|00002c50| 09 09 09 09 30 2c 20 30 | 20 29 3b 0d 09 7d 20 2f |....0, 0| );..} /|
|00002c60| 2f 20 41 54 4d 4e 6f 74 | 69 66 79 0d 0d 0d 2f 2a |/ ATMNot|ify.../*|
|00002c70| 20 49 66 20 64 6f 41 64 | 64 20 69 73 20 74 72 75 | If doAd|d is tru|
|00002c80| 65 2c 20 74 68 65 6e 20 | 61 64 64 20 74 6f 20 74 |e, then |add to t|
|00002c90| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 20 61 6c 6c |he selec|tion all|
|00002ca0| 20 73 75 62 6e 6f 74 65 | 73 20 6f 66 20 61 6c 6c | subnote|s of all|
|00002cb0| 20 6e 6f 74 65 73 0d 20 | 2a 20 69 6e 20 74 68 65 | notes. |* in the|
|00002cc0| 20 73 65 6c 65 63 74 69 | 6f 6e 2e 20 20 4f 74 68 | selecti|on. Oth|
|00002cd0| 65 72 77 69 73 65 20 72 | 65 70 6c 61 63 65 20 74 |erwise r|eplace t|
|00002ce0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 65 6c 65 63 |he curre|nt selec|
|00002cf0| 74 69 6f 6e 20 62 79 20 | 74 68 65 20 73 75 62 6e |tion by |the subn|
|00002d00| 6f 74 65 73 0d 20 2a 20 | 6f 66 20 61 6c 6c 20 6e |otes. * |of all n|
|00002d10| 6f 74 65 73 20 69 6e 20 | 74 68 65 20 73 65 6c 65 |otes in |the sele|
|00002d20| 63 74 69 6f 6e 2e 0d 20 | 2a 2f 0d 76 6f 69 64 20 |ction.. |*/.void |
|00002d30| 50 6c 75 67 69 6e 3a 3a | 44 6f 53 65 6c 65 63 74 |Plugin::|DoSelect|
|00002d40| 53 75 62 6e 6f 74 65 73 | 28 42 6f 6f 6c 65 61 6e |Subnotes|(Boolean|
|00002d50| 20 64 6f 41 64 64 29 0d | 09 7b 0d 09 2f 2f 20 44 | doAdd).|.{..// D|
|00002d60| 65 74 65 72 6d 69 6e 65 | 20 77 68 65 74 68 65 72 |etermine| whether|
|00002d70| 20 74 68 65 72 65 20 69 | 73 20 61 20 73 65 6c 65 | there i|s a sele|
|00002d80| 63 74 69 6f 6e 20 61 6e | 64 20 68 6f 77 20 6d 61 |ction an|d how ma|
|00002d90| 6e 79 20 6e 6f 74 65 73 | 20 69 74 20 63 6f 6e 74 |ny notes| it cont|
|00002da0| 61 69 6e 73 2e 0d 09 49 | 6e 74 65 67 65 72 20 73 |ains...I|nteger s|
|00002db0| 65 6c 43 6f 75 6e 74 3b | 0d 09 0d 09 61 72 4e 6f |elCount;|....arNo|
|00002dc0| 74 65 49 44 20 20 73 65 | 6c 4e 6f 74 65 3b 0d 09 |teID se|lNote;..|
|00002dd0| 61 72 46 69 65 6c 64 49 | 44 20 73 65 6c 46 69 65 |arFieldI|D selFie|
|00002de0| 6c 64 3b 0d 09 49 6e 74 | 65 67 65 72 20 20 20 73 |ld;..Int|eger s|
|00002df0| 65 6c 53 74 61 72 74 3b | 0d 09 49 6e 74 65 67 65 |elStart;|..Intege|
|00002e00| 72 20 20 20 73 65 6c 45 | 6e 64 3b 0d 09 73 77 69 |r selE|nd;..swi|
|00002e10| 74 63 68 20 28 63 61 6c | 6c 73 2d 3e 73 65 6c 2d |tch (cal|ls->sel-|
|00002e20| 3e 47 65 74 53 65 6c 65 | 63 74 69 6f 6e 28 26 73 |>GetSele|ction(&s|
|00002e30| 65 6c 4e 6f 74 65 2c 20 | 26 73 65 6c 46 69 65 6c |elNote, |&selFiel|
|00002e40| 64 2c 20 26 73 65 6c 53 | 74 61 72 74 2c 20 26 73 |d, &selS|tart, &s|
|00002e50| 65 6c 45 6e 64 29 29 0d | 09 09 7b 0d 09 09 63 61 |elEnd)).|..{...ca|
|00002e60| 73 65 20 73 74 4e 6f 74 | 65 3a 0d 09 09 63 61 73 |se stNot|e:...cas|
|00002e70| 65 20 73 74 46 69 65 6c | 64 3a 0d 09 09 63 61 73 |e stFiel|d:...cas|
|00002e80| 65 20 73 74 54 65 78 74 | 3a 0d 09 09 63 61 73 65 |e stText|:...case|
|00002e90| 20 73 74 46 69 65 6c 64 | 43 6f 6e 74 65 6e 74 73 | stField|Contents|
|00002ea0| 3a 0d 09 09 09 73 65 6c | 43 6f 75 6e 74 20 3d 20 |:....sel|Count = |
|00002eb0| 31 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 0d |1;....br|eak;....|
|00002ec0| 09 09 63 61 73 65 20 73 | 74 4d 75 6c 74 69 70 6c |..case s|tMultipl|
|00002ed0| 65 4e 6f 74 65 73 3a 0d | 09 09 63 61 73 65 20 73 |eNotes:.|..case s|
|00002ee0| 74 4d 75 6c 74 69 70 6c | 65 46 69 65 6c 64 73 3a |tMultipl|eFields:|
|00002ef0| 0d 09 09 09 73 65 6c 43 | 6f 75 6e 74 20 3d 20 73 |....selC|ount = s|
|00002f00| 65 6c 53 74 61 72 74 3b | 0d 09 09 09 62 72 65 61 |elStart;|....brea|
|00002f10| 6b 3b 0d 09 09 0d 09 09 | 64 65 66 61 75 6c 74 3a |k;......|default:|
|00002f20| 0d 09 09 09 72 65 74 75 | 72 6e 3b 0d 09 09 0d 09 |....retu|rn;.....|
|00002f30| 09 7d 20 2f 2f 20 73 77 | 69 74 63 68 20 28 47 65 |.} // sw|itch (Ge|
|00002f40| 74 53 65 6c 65 63 74 69 | 6f 6e 20 72 65 73 75 6c |tSelecti|on resul|
|00002f50| 74 29 0d 09 0d 09 2f 2f | 20 47 65 74 20 61 20 6c |t)....//| Get a l|
|00002f60| 69 73 74 20 6f 66 20 74 | 68 65 20 49 44 73 20 6f |ist of t|he IDs o|
|00002f70| 66 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 20 6e |f the se|lected n|
|00002f80| 6f 74 65 73 2e 0d 09 61 | 72 4e 6f 74 65 49 44 2a |otes...a|rNoteID*|
|00002f90| 20 73 65 6c 49 44 73 20 | 3d 20 28 61 72 4e 6f 74 | selIDs |= (arNot|
|00002fa0| 65 49 44 2a 29 20 63 61 | 6c 6c 73 2d 3e 6d 65 6d |eID*) ca|lls->mem|
|00002fb0| 2d 3e 41 6c 6c 6f 63 4d | 65 6d 28 20 73 65 6c 43 |->AllocM|em( selC|
|00002fc0| 6f 75 6e 74 20 2a 20 73 | 69 7a 65 6f 66 28 61 72 |ount * s|izeof(ar|
|00002fd0| 4e 6f 74 65 49 44 29 2c | 0d 09 09 09 09 09 09 09 |NoteID),|........|
|00002fe0| 09 09 09 09 09 09 09 09 | 09 09 09 20 20 61 6d 46 |........|... amF|
|00002ff0| 72 65 65 53 74 6f 72 65 | 20 29 3b 0d 09 69 66 20 |reeStore| );..if |
|00003000| 28 73 65 6c 49 44 73 20 | 3d 3d 20 6e 69 6c 29 0d |(selIDs |== nil).|
|00003010| 09 09 72 65 74 75 72 6e | 3b 0d 09 0d 09 61 72 4e |..return|;....arN|
|00003020| 6f 74 65 49 44 20 70 61 | 72 65 6e 74 4e 6f 74 65 |oteID pa|rentNote|
|00003030| 3b 0d 09 66 6f 72 20 28 | 69 6e 74 20 69 3d 30 3b |;..for (|int i=0;|
|00003040| 20 69 3c 73 65 6c 43 6f | 75 6e 74 3b 20 69 2b 2b | i<selCo|unt; i++|
|00003050| 29 0d 09 09 7b 0d 09 09 | 63 61 6c 6c 73 2d 3e 73 |)...{...|calls->s|
|00003060| 65 6c 2d 3e 47 65 74 53 | 65 6c 45 6e 74 72 79 28 |el->GetS|elEntry(|
|00003070| 69 2c 20 26 73 65 6c 4e | 6f 74 65 2c 20 26 73 65 |i, &selN|ote, &se|
|00003080| 6c 46 69 65 6c 64 2c 20 | 26 70 61 72 65 6e 74 4e |lField, |&parentN|
|00003090| 6f 74 65 29 3b 0d 09 09 | 69 66 20 28 73 65 6c 46 |ote);...|if (selF|
|000030a0| 69 65 6c 64 20 3d 3d 20 | 6e 69 6c 29 0d 09 09 09 |ield == |nil)....|
|000030b0| 73 65 6c 49 44 73 5b 69 | 5d 20 3d 20 70 61 72 65 |selIDs[i|] = pare|
|000030c0| 6e 74 4e 6f 74 65 3b 0d | 09 09 65 6c 73 65 0d 09 |ntNote;.|..else..|
|000030d0| 09 09 73 65 6c 49 44 73 | 5b 69 5d 20 3d 20 73 65 |..selIDs|[i] = se|
|000030e0| 6c 4e 6f 74 65 3b 0d 09 | 09 7d 0d 09 0d 09 2f 2f |lNote;..|.}....//|
|000030f0| 20 49 66 20 64 6f 41 64 | 64 20 69 73 20 66 61 6c | If doAd|d is fal|
|00003100| 73 65 2c 20 74 68 65 6e | 20 64 72 6f 70 20 74 68 |se, then| drop th|
|00003110| 65 20 6f 6c 64 20 73 65 | 6c 65 63 74 69 6f 6e 2e |e old se|lection.|
|00003120| 0d 09 69 66 20 28 21 64 | 6f 41 64 64 29 0d 09 09 |..if (!d|oAdd)...|
|00003130| 69 66 20 28 21 63 61 6c | 6c 73 2d 3e 73 65 6c 2d |if (!cal|ls->sel-|
|00003140| 3e 46 6c 75 73 68 53 65 | 6c 65 63 74 69 6f 6e 28 |>FlushSe|lection(|
|00003150| 74 72 75 65 29 29 0d 09 | 09 09 7b 0d 09 09 09 63 |true))..|..{....c|
|00003160| 61 6c 6c 73 2d 3e 6d 65 | 6d 2d 3e 44 65 61 6c 6c |alls->me|m->Deall|
|00003170| 6f 63 4d 65 6d 28 73 65 | 6c 49 44 73 2c 20 61 6d |ocMem(se|lIDs, am|
|00003180| 46 72 65 65 53 74 6f 72 | 65 29 3b 0d 09 09 09 72 |FreeStor|e);....r|
|00003190| 65 74 75 72 6e 3b 0d 09 | 09 09 7d 0d 09 0d 09 2f |eturn;..|..}..../|
|000031a0| 2f 20 41 64 64 20 74 6f | 20 74 68 65 20 73 65 6c |/ Add to| the sel|
|000031b0| 65 63 74 69 6f 6e 20 61 | 6c 6c 20 73 75 62 6e 6f |ection a|ll subno|
|000031c0| 74 65 73 20 6f 66 20 65 | 61 63 68 20 6e 6f 74 65 |tes of e|ach note|
|000031d0| 20 69 6e 20 73 65 6c 49 | 44 73 2e 0d 09 61 72 46 | in selI|Ds...arF|
|000031e0| 69 65 6c 64 49 44 20 73 | 75 62 6e 6f 74 65 73 46 |ieldID s|ubnotesF|
|000031f0| 69 65 6c 64 20 3d 20 63 | 61 6c 6c 73 2d 3e 73 79 |ield = c|alls->sy|
|00003200| 73 4f 62 6a 2d 3e 47 65 | 74 42 75 69 6c 74 49 6e |sObj->Ge|tBuiltIn|
|00003210| 4f 62 6a 65 63 74 28 62 | 6f 53 75 62 6e 6f 74 65 |Object(b|oSubnote|
|00003220| 73 46 69 65 6c 64 29 3b | 0d 09 66 6f 72 20 28 69 |sField);|..for (i|
|00003230| 3d 30 3b 20 69 3c 73 65 | 6c 43 6f 75 6e 74 3b 20 |=0; i<se|lCount; |
|00003240| 69 2b 2b 29 0d 09 09 7b | 0d 09 09 61 72 4c 69 73 |i++)...{|...arLis|
|00003250| 74 49 44 20 63 75 72 53 | 75 62 6e 6f 74 65 73 20 |tID curS|ubnotes |
|00003260| 3d 20 63 61 6c 6c 73 2d | 3e 64 61 74 61 2d 3e 47 |= calls-|>data->G|
|00003270| 65 74 46 69 65 6c 64 4c | 69 73 74 28 73 65 6c 49 |etFieldL|ist(selI|
|00003280| 44 73 5b 69 5d 2c 20 73 | 75 62 6e 6f 74 65 73 46 |Ds[i], s|ubnotesF|
|00003290| 69 65 6c 64 29 3b 0d 09 | 09 49 6e 74 65 67 65 72 |ield);..|.Integer|
|000032a0| 20 73 75 62 6e 6f 74 65 | 43 6f 75 6e 74 20 3d 20 | subnote|Count = |
|000032b0| 63 61 6c 6c 73 2d 3e 6c | 69 73 74 2d 3e 47 65 74 |calls->l|ist->Get|
|000032c0| 4c 69 73 74 4c 65 6e 28 | 63 75 72 53 75 62 6e 6f |ListLen(|curSubno|
|000032d0| 74 65 73 29 3b 0d 09 09 | 0d 09 09 66 6f 72 20 28 |tes);...|...for (|
|000032e0| 69 6e 74 20 6a 3d 30 3b | 20 6a 3c 73 75 62 6e 6f |int j=0;| j<subno|
|000032f0| 74 65 43 6f 75 6e 74 3b | 20 6a 2b 2b 29 0d 09 09 |teCount;| j++)...|
|00003300| 09 63 61 6c 6c 73 2d 3e | 73 65 6c 2d 3e 53 65 6c |.calls->|sel->Sel|
|00003310| 65 63 74 4f 62 6a 65 63 | 74 28 20 73 65 6c 49 44 |ectObjec|t( selID|
|00003320| 73 5b 69 5d 2c 20 73 75 | 62 6e 6f 74 65 73 46 69 |s[i], su|bnotesFi|
|00003330| 65 6c 64 2c 0d 09 09 09 | 09 09 09 09 09 09 09 09 |eld,....|........|
|00003340| 20 20 63 61 6c 6c 73 2d | 3e 6c 69 73 74 2d 3e 47 | calls-|>list->G|
|00003350| 65 74 4c 69 73 74 45 6e | 74 72 79 28 63 75 72 53 |etListEn|try(curS|
|00003360| 75 62 6e 6f 74 65 73 2c | 6a 29 2c 0d 09 09 09 09 |ubnotes,|j),.....|
|00003370| 09 09 09 09 09 09 09 20 | 20 66 61 6c 73 65 20 29 |....... | false )|
|00003380| 3b 0d 09 09 0d 09 09 63 | 61 6c 6c 73 2d 3e 6c 69 |;......c|alls->li|
|00003390| 73 74 2d 3e 44 69 73 70 | 6f 73 65 4c 69 73 74 28 |st->Disp|oseList(|
|000033a0| 63 75 72 53 75 62 6e 6f | 74 65 73 29 3b 0d 09 09 |curSubno|tes);...|
|000033b0| 7d 0d 09 0d 09 63 61 6c | 6c 73 2d 3e 6d 65 6d 2d |}....cal|ls->mem-|
|000033c0| 3e 44 65 61 6c 6c 6f 63 | 4d 65 6d 28 73 65 6c 49 |>Dealloc|Mem(selI|
|000033d0| 44 73 2c 20 61 6d 46 72 | 65 65 53 74 6f 72 65 29 |Ds, amFr|eeStore)|
|000033e0| 3b 0d 09 7d 20 2f 2f 20 | 44 6f 53 65 6c 65 63 74 |;..} // |DoSelect|
|000033f0| 53 75 62 6e 6f 74 65 73 | 0d 00 00 00 00 00 00 00 |Subnotes|........|
|00003400| 00 00 01 00 00 00 02 d2 | 00 00 01 d2 00 00 00 4a |........|.......J|
|00003410| 00 00 00 6c 07 33 44 44 | 65 62 75 67 01 00 00 00 |...l.3DD|ebug....|
|00003420| 00 16 00 02 24 0a a9 2a | 88 a1 a9 30 d5 84 00 00 |....$..*|...0....|
|00003430| 11 53 65 6c 65 63 74 53 | 75 62 6e 6f 74 65 73 2e |.SelectS|ubnotes.|
|00003440| 63 70 02 00 00 00 54 45 | 58 54 4d 50 53 20 00 00 |cp....TE|XTMPS ..|
|00003450| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 00 |..TEXTMP|S ......|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 a9 35 03 22 00 00 | 33 79 00 00 03 1c 4c 41 |...5."..|3y....LA|
|00003480| 21 00 01 52 02 f7 00 00 | 00 02 02 f2 00 00 00 00 |!..R....|........|
|00003490| e3 b5 00 00 f0 00 00 00 | 00 11 c3 e3 00 11 d0 00 |........|........|
|000034a0| a8 f4 7c 99 a9 04 3d 51 | 00 00 00 00 00 00 00 00 |..|...=Q|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 07 32 |........|.......2|
|000034c0| 00 0f 00 00 00 00 00 00 | 00 00 07 41 00 03 07 46 |........|...A...F|
|000034d0| 00 01 07 59 00 03 00 00 | 00 00 1b 00 00 00 00 6c |...Y....|.......l|
|000034e0| 15 41 72 72 61 6e 67 65 | 20 61 6e 64 20 55 6e 64 |.Arrange| and Und|
|000034f0| 65 72 57 61 72 65 02 00 | 00 00 54 45 58 54 47 45 |erWare..|..TEXTGE|
|00003500| 00 00 00 48 00 0c 43 6f | 75 72 69 65 72 00 01 70 |...H..Co|urier..p|
|00003510| 20 7b 52 61 6d 45 78 69 | 73 74 73 7d 3b 09 20 09 | {RamExi|sts};. .|
|00003520| 49 46 20 22 7b 41 00 07 | 00 03 00 2a 00 03 02 fc |IF "{A..|...*....|
|00003530| 02 71 00 2a 00 03 02 fc | 02 71 aa 4c 4f 75 00 00 |.q.*....|.q.LOu..|
|00003540| 21 b4 00 00 21 b4 00 00 | 1f 49 01 00 00 00 01 60 |!...!...|.I.....`|
|00003550| 00 10 00 00 05 90 00 00 | 05 a0 11 4d 61 69 6e 20 |........|...Main |
|00003560| 65 6e 74 72 79 20 70 6f | 69 6e 74 00 00 00 07 bf |entry po|int.....|
|00003570| 00 00 07 cc 11 20 20 20 | 4f 75 72 4d 6f 64 75 6c |..... |OurModul|
|00003580| 65 52 6f 6f 74 00 00 00 | 13 8d 00 00 13 8d 03 2d |eRoot...|.......-|
|00003590| 31 00 00 00 13 b0 00 00 | 13 b6 07 50 6c 75 67 69 |1.......|...Plugi|
|000035a0| 6e 00 00 00 14 cd 00 00 | 14 d3 09 20 20 20 50 6c |n.......|... Pl|
|000035b0| 75 67 69 6e 00 00 1b 4b | 00 00 1b 52 0b 20 20 20 |ugin...K|...R. |
|000035c0| 7e 50 6c 75 67 69 6e 00 | 00 00 1c d3 00 00 1c de |~Plugin.|........|
|000035d0| 0f 20 20 20 43 6c 69 63 | 6b 4e 6f 74 69 66 79 00 |. Clic|kNotify.|
|000035e0| 00 00 1f 62 00 00 1f 6b | 0d 20 20 20 4b 65 79 4e |...b...k|. KeyN|
|000035f0| 6f 74 69 66 79 00 00 00 | 21 7b 00 00 21 85 0d 20 |otify...|!{..!.. |
|00003600| 20 20 4d 65 6e 75 4e 6f | 74 69 66 79 00 00 24 73 | MenuNo|tify..$s|
|00003610| 00 00 24 7e 0f 20 20 20 | 46 69 65 6c 64 4e 6f 74 |..$~. |FieldNot|
|00003620| 69 66 79 00 00 00 25 ea | 00 00 25 f5 0f 20 20 20 |ify...%.|..%.. |
|00003630| 54 6f 70 69 63 4e 6f 74 | 69 66 79 00 00 00 26 e1 |TopicNot|ify...&.|
|00003640| 00 00 26 eb 0d 20 20 20 | 54 69 63 6b 4e 6f 74 69 |..&.. |TickNoti|
|00003650| 66 79 00 00 27 cd 00 00 | 27 d7 0d 20 20 20 46 69 |fy..'...|'.. Fi|
|00003660| 6c 65 4e 6f 74 69 66 79 | 00 00 28 f6 00 00 29 00 |leNotify|..(...).|
|00003670| 0d 20 20 20 51 75 69 74 | 4e 6f 74 69 66 79 00 00 |. Quit|Notify..|
|00003680| 2a 5b 00 00 2a 64 0d 20 | 20 20 41 54 4d 4e 6f 74 |*[..*d. | ATMNot|
|00003690| 69 66 79 00 00 00 2c b8 | 00 00 2c c8 13 20 20 20 |ify...,.|..,.. |
|000036a0| 44 6f 53 65 6c 65 63 74 | 53 75 62 6e 6f 74 65 73 |DoSelect|Subnotes|
|000036b0| 00 00 00 1e 00 2a 00 03 | 02 fc 02 71 00 2a 00 03 |.....*..|...q.*..|
|000036c0| 02 fc 02 71 00 00 1f 49 | 00 00 00 00 00 00 00 00 |...q...I|........|
|000036d0| 00 00 00 00 01 00 00 00 | 02 d2 00 00 01 d2 00 00 |........|........|
|000036e0| 00 4a 01 1b cd 58 0d f6 | 00 00 00 1c 00 4a 00 00 |.J...X..|.....J..|
|000036f0| 4d 50 53 52 00 02 00 0a | 03 ed ff ff 00 00 00 00 |MPSR....|........|
|00003700| 00 00 00 00 03 ef ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|00003710| 03 f0 ff ff 00 00 01 b0 | 01 1e 16 6c 00 00 00 00 |........|...l....|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+